neteja final tidy/cppcheck: const*, static, renames de constants

This commit is contained in:
2026-05-16 19:40:33 +02:00
parent 37cb3c782a
commit 479d9d941a
14 changed files with 272 additions and 337 deletions
+5 -5
View File
@@ -51,8 +51,8 @@ auto Lang::setLang(Code lang) -> bool {
break;
}
for (auto &mTextString : text_strings_) {
mTextString = "";
for (auto &text_string : text_strings_) {
text_string = "";
}
// Lee el fichero via ResourceHelper (pack o filesystem)
@@ -74,9 +74,9 @@ auto Lang::setLang(Code lang) -> bool {
line.pop_back();
}
// Almacena solo las lineas que no empiezan por # o no esten vacias
const bool test1 = line.substr(0, 1) != "#";
const bool test2 = !line.empty();
if (test1 && test2) {
const bool NOT_COMMENT = line.substr(0, 1) != "#";
const bool NOT_EMPTY = !line.empty();
if (NOT_COMMENT && NOT_EMPTY) {
if (index >= MAX_TEXT_STRINGS) {
break;
}