Skip to content

Commit 24f1f1e

Browse files
Fix bug with string search
1 parent 7ead88f commit 24f1f1e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Parsers/CSFParser.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,6 @@ using namespace std;
130130

131131
// Add CompiledString{string Name, wstring Value} to list
132132
Table.push_back({stringName, stringValue});
133-
if (stringValue.trimmed() == "")
134-
{
135-
LOGMSG("Warning: read value can be trimmed to empty string");
136-
}
137133
}
138134
}
139135
}
@@ -208,9 +204,10 @@ using namespace std;
208204
QString CSFParser::GetStringValue(const QString& strName) const
209205
{
210206
QString returnValue;
207+
auto tmp = strName.toUpper();
211208

212209
for (const auto& elem : Table)
213-
if (elem.Name == strName)
210+
if (elem.Name.toUpper() == tmp)
214211
{
215212
returnValue = elem.Value;
216213
break;

0 commit comments

Comments
 (0)