Kaydet (Commit) 375cb298 authored tarafından Caolán McNamara's avatar Caolán McNamara

cppcheck: Empty string test can be simplified

üst 8c054e4e
......@@ -77,7 +77,7 @@ CharacterSource::LoadText(csv::bstream & io_rSource)
void
CharacterSource::InsertTextAtCurPos( const char * i_sText2Insert )
{
if ( i_sText2Insert == 0 ? true : strlen(i_sText2Insert) == 0 )
if ( !i_sText2Insert || !i_sText2Insert[0] )
return;
aSourcesStack.push( S_SourceState(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment