Merge pull request #84445 from Rubonnek/add-const-references-clang-tidy
Add const references detected by clang-tidy
This commit is contained in:
commit
6c390b620d
57 changed files with 119 additions and 119 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