From 927ceaa9c5c12416f34bdcfd5bc078a5d4a29d80 Mon Sep 17 00:00:00 2001 From: Starkku Date: Thu, 15 Feb 2024 20:47:20 +0200 Subject: [PATCH] Minor fixup --- src/Utilities/TemplateDef.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Utilities/TemplateDef.h b/src/Utilities/TemplateDef.h index 05d71e9eef..c158d0f05e 100644 --- a/src/Utilities/TemplateDef.h +++ b/src/Utilities/TemplateDef.h @@ -1522,9 +1522,7 @@ void __declspec(noinline) NullableVector::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, ""); + auto const non_default = _strcmpi(parser.value(), ""); this->hasValue = non_default; if (non_default) @@ -1574,9 +1572,7 @@ void __declspec(noinline) NullableIdxVector::Read(INI_EX& parser, cons if (parser.ReadString(pSection, pKey)) { this->clear(); - - const char* val = parser.value(); - auto const non_default = _strcmpi(val, "") != 0; + auto const non_default = _strcmpi(parser.value(), "") != 0; this->hasValue = non_default; if (non_default)