Change some RString methods to free functions

These ones aren't a std::string method. Doing this helps the RString to
std::string migration.
This commit is contained in:
Arthur Eubanks
2025-04-29 22:01:23 -07:00
committed by teejusb
parent 9449317430
commit 995f0ea8c1
109 changed files with 587 additions and 618 deletions
+2 -2
View File
@@ -173,9 +173,9 @@ static void Deserialize( Song &out, const Json::Value &root )
out.m_fMusicSampleStartSeconds = (float)root["SampleStart"].asDouble();
out.m_fMusicSampleLengthSeconds = (float)root["SampleLength"].asDouble();
RString sSelectable = root["Selectable"].asString();
if( sSelectable.EqualsNoCase("YES") )
if( EqualsNoCase(sSelectable, "YES") )
out.m_SelectionDisplay = out.SHOW_ALWAYS;
else if( sSelectable.EqualsNoCase("NO") )
else if( EqualsNoCase(sSelectable, "NO") )
out.m_SelectionDisplay = out.SHOW_NEVER;
out.m_sSongFileName = root["SongFileName"].asString();