[Libreoffice-commits] core.git: sw/source

Stephan Bergmann sbergman at redhat.com
Tue Aug 16 07:35:04 UTC 2016


 sw/source/core/tox/ToxTextGenerator.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1fd006b020212d8f4743eac105f8d36889a21071
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Aug 16 09:34:40 2016 +0200

    loplugin:stringconstant
    
    Change-Id: I73fae0d8a7859690b5bc2876f544d812c808dc8e

diff --git a/sw/source/core/tox/ToxTextGenerator.cxx b/sw/source/core/tox/ToxTextGenerator.cxx
index 5c0514f..7edfa8e 100644
--- a/sw/source/core/tox/ToxTextGenerator.cxx
+++ b/sw/source/core/tox/ToxTextGenerator.cxx
@@ -87,7 +87,7 @@ ToxTextGenerator::GetNumStringOfFirstNode( const SwTOXSortTabBase& rBase, bool b
         sRet = pNd->GetNumString(bUsePrefix, nLevel);
     }
 
-    if(sRet != "") {
+    if (!sRet.isEmpty()) {
         sRet += " ";// Makes sure spacing is done only when there is outline numbering
     }
 


More information about the Libreoffice-commits mailing list