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

Stephan Bergmann sbergman at redhat.com
Fri Nov 20 07:05:10 PST 2015


 sfx2/source/sidebar/ResourceManager.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f28420515c380de646db507be92312e26afaffcb
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Nov 20 16:04:43 2015 +0100

    loplugin:stringconstant
    
    Change-Id: Ia0a89419fffb9081df7da4696c3ec21ef3f0256b

diff --git a/sfx2/source/sidebar/ResourceManager.cxx b/sfx2/source/sidebar/ResourceManager.cxx
index 97268e5..b46b257 100644
--- a/sfx2/source/sidebar/ResourceManager.cxx
+++ b/sfx2/source/sidebar/ResourceManager.cxx
@@ -76,7 +76,7 @@ css::uno::Sequence<OUString> BuildContextList (ContextList rContextList, bool is
 
             OUString element = appName + ", " + contextName +", " + visibility;
 
-            if (menuCommand != "")
+            if (!menuCommand.isEmpty())
                 element += ", "+menuCommand;
 
             result[i] = element;


More information about the Libreoffice-commits mailing list