Skip to content

Commit

Permalink
Minor fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Starkku committed Feb 15, 2024
1 parent 25c637e commit 927ceaa
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Utilities/TemplateDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -1522,9 +1522,7 @@ void __declspec(noinline) NullableVector<T>::Read(INI_EX& parser, const char* pS
if (parser.ReadString(pSection, pKey))
{
this->clear();

const char* val = parser.value();
auto const non_default = _strcmpi(val, "<default>");
auto const non_default = _strcmpi(parser.value(), "<default>");
this->hasValue = non_default;

if (non_default)
Expand Down Expand Up @@ -1574,9 +1572,7 @@ void __declspec(noinline) NullableIdxVector<Lookuper>::Read(INI_EX& parser, cons
if (parser.ReadString(pSection, pKey))
{
this->clear();

const char* val = parser.value();
auto const non_default = _strcmpi(val, "<default>") != 0;
auto const non_default = _strcmpi(parser.value(), "<default>") != 0;
this->hasValue = non_default;

if (non_default)
Expand Down

0 comments on commit 927ceaa

Please sign in to comment.