[Libreoffice-commits] .: autodoc/source

Caolán McNamara caolan at kemper.freedesktop.org
Tue Nov 23 09:05:38 PST 2010


 autodoc/source/tools/tkpchars.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5e35955bdcf8deeab266877c56d7a5bca0be7421
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Nov 23 17:05:20 2010 +0000

    cppcheck: Empty string test can be simplified

diff --git a/autodoc/source/tools/tkpchars.cxx b/autodoc/source/tools/tkpchars.cxx
index c50c155..78b88eb 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(


More information about the Libreoffice-commits mailing list