Skip to content

Commit

Permalink
Fix bug with string search
Browse files Browse the repository at this point in the history
  • Loading branch information
MahBoiDeveloper committed Mar 4, 2025
1 parent 7ead88f commit 24f1f1e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Parsers/CSFParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,6 @@ using namespace std;

// Add CompiledString{string Name, wstring Value} to list
Table.push_back({stringName, stringValue});
if (stringValue.trimmed() == "")
{
LOGMSG("Warning: read value can be trimmed to empty string");
}
}
}
}
Expand Down Expand Up @@ -208,9 +204,10 @@ using namespace std;
QString CSFParser::GetStringValue(const QString& strName) const
{
QString returnValue;
auto tmp = strName.toUpper();

for (const auto& elem : Table)
if (elem.Name == strName)
if (elem.Name.toUpper() == tmp)
{
returnValue = elem.Value;
break;
Expand Down

0 comments on commit 24f1f1e

Please sign in to comment.