Clarify confusing RString comparison
This was actually a nullptr that got converted to an empty string because of RString-specific code.
This commit is contained in:
@@ -888,7 +888,7 @@ void SMLoader::ProcessSpeeds( TimingData &out, const RString line, const int row
|
|||||||
std::vector<RString> vs2;
|
std::vector<RString> vs2;
|
||||||
split( s1, "=", vs2 );
|
split( s1, "=", vs2 );
|
||||||
|
|
||||||
if( vs2[0] == 0 && vs2.size() == 2 ) // First one always seems to have 2.
|
if( vs2[0].empty() && vs2.size() == 2 ) // First one always seems to have 2.
|
||||||
{
|
{
|
||||||
vs2.push_back("0");
|
vs2.push_back("0");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user