Cleanup: Various clang-tidy warnings in blentranslation
Pull Request: https://projects.blender.org/blender/blender/pulls/133734
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "BLI_string_ref.hh"
|
||||
#include "BLI_utildefines.h" /* for bool type */
|
||||
|
||||
#define TEXT_DOMAIN_NAME "blender"
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
* Main internationalization functions to set the locale and query available languages.
|
||||
*/
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
|
||||
@@ -49,9 +49,9 @@ enum eSectionType {
|
||||
};
|
||||
|
||||
struct Message {
|
||||
std::string ctxt = "";
|
||||
std::string id = "";
|
||||
std::string str = "";
|
||||
std::string ctxt;
|
||||
std::string id;
|
||||
std::string str;
|
||||
|
||||
bool is_fuzzy = false;
|
||||
};
|
||||
@@ -127,13 +127,8 @@ static char *generate(blender::Map<std::string, std::string> &messages, size_t *
|
||||
blender::StringRef value;
|
||||
|
||||
Item(const MapItem &other) : key(other.key), value(other.value) {}
|
||||
Item(const Item &other) : key(other.key), value(other.value) {}
|
||||
Item &operator=(const Item &other)
|
||||
{
|
||||
this->key = other.key;
|
||||
this->value = other.value;
|
||||
return *this;
|
||||
}
|
||||
Item(const Item &other) = default;
|
||||
Item &operator=(const Item &other) = default;
|
||||
};
|
||||
const uint32_t num_keys = messages.size();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user