summaryrefslogtreecommitdiffstats
path: root/autodoc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-11-23 17:05:20 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-11-23 17:05:20 +0000
commit375cb298064a8d22346dbf03731a6d7673b75350 (patch)
tree58c0a011a2dee5bee27fea6d645a0da0a325bb2c /autodoc
parentDon't call the converttags.pl script. It is gone. (diff)
downloadcore-375cb298064a8d22346dbf03731a6d7673b75350.tar.gz
core-375cb298064a8d22346dbf03731a6d7673b75350.zip
cppcheck: Empty string test can be simplified
Diffstat (limited to 'autodoc')
-rw-r--r--autodoc/source/tools/tkpchars.cxx2
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(