Skip to content
Permalink
Browse files

Fix compile error in CStringMapReader::ReadString

  • Loading branch information...
botder committed Aug 22, 2019
1 parent e6c6edb commit 3b624da9072a61c26f9481da49687b26dbde0325
Showing with 5 additions and 1 deletion.
  1. +5 −1 Shared/sdk/CStringMap.h
@@ -18,7 +18,11 @@ class CStringMapReader : public std::map<SString, V>
void ReadString(const SString& strKeyName, SString& strOutValue, const char* szDefaultValue)
{
V* pstrValue = MapFind(*this, strKeyName);
strOutValue = pstrValue ? *pstrValue : szDefaultValue;

if (pstrValue)
strOutValue = *pstrValue;
else
strOutValue = szDefaultValue;
}

template <typename T, typename U>

0 comments on commit 3b624da

Please sign in to comment.
You can’t perform that action at this time.