mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add const references detected by clang-tidy
This commit is contained in:
parent
2d0ee20ff3
commit
a3cb1b096f
57 changed files with 120 additions and 120 deletions
|
|
@ -69,7 +69,7 @@ void POTGenerator::generate_pot(const String &p_file) {
|
|||
for (int i = 0; i < files.size(); i++) {
|
||||
Vector<String> msgids;
|
||||
Vector<Vector<String>> msgids_context_plural;
|
||||
String file_path = files[i];
|
||||
const String &file_path = files[i];
|
||||
String file_extension = file_path.get_extension();
|
||||
|
||||
if (EditorTranslationParser::get_singleton()->can_parse(file_extension)) {
|
||||
|
|
@ -80,7 +80,7 @@ void POTGenerator::generate_pot(const String &p_file) {
|
|||
}
|
||||
|
||||
for (int j = 0; j < msgids_context_plural.size(); j++) {
|
||||
Vector<String> entry = msgids_context_plural[j];
|
||||
const Vector<String> &entry = msgids_context_plural[j];
|
||||
_add_new_msgid(entry[0], entry[1], entry[2], file_path);
|
||||
}
|
||||
for (int j = 0; j < msgids.size(); j++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue