diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-11-23 17:05:20 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-23 17:05:20 +0000 |
commit | 375cb298064a8d22346dbf03731a6d7673b75350 (patch) | |
tree | 58c0a011a2dee5bee27fea6d645a0da0a325bb2c /autodoc | |
parent | 8c054e4ecc2588284376438f6d638d50b64f1323 (diff) |
cppcheck: Empty string test can be simplified
Diffstat (limited to 'autodoc')
-rw-r--r-- | autodoc/source/tools/tkpchars.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autodoc/source/tools/tkpchars.cxx b/autodoc/source/tools/tkpchars.cxx index 25210acfa6f7..ad5d3f0b3727 100644 --- a/autodoc/source/tools/tkpchars.cxx +++ b/autodoc/source/tools/tkpchars.cxx @@ -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( |