Cleanup: Various clang-tidy warnings in blentranslation

Pull Request: https://projects.blender.org/blender/blender/pulls/133734
This commit is contained in:
Brecht Van Lommel
2025-01-26 20:07:58 +01:00
parent c296e668fc
commit ac977826e7
3 changed files with 5 additions and 12 deletions

View File

@@ -9,7 +9,6 @@
#pragma once
#include "BLI_string_ref.hh"
#include "BLI_utildefines.h" /* for bool type */
#define TEXT_DOMAIN_NAME "blender"

View File

@@ -8,7 +8,6 @@
* Main internationalization functions to set the locale and query available languages.
*/
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>

View File

@@ -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();