neteja final tidy/cppcheck: const*, static, renames de constants
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user