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

Matúš Kukan matus.kukan at gmail.com
Fri Dec 18 22:21:50 PST 2015


 cui/source/customize/cfg.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 58f6e2ec8c546e7f927dfc333c8ae401f98e3dcf
Author: Matúš Kukan <matus.kukan at gmail.com>
Date:   Sat Dec 19 07:20:51 2015 +0100

    loplugin:stringconstant
    
    Change-Id: Iafe0c422f8681bd2ed5b825af180facb59aaf531

diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index b1defa9..9f6c8fd 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -3396,7 +3396,7 @@ IMPL_LINK_TYPED( SvxToolbarConfigPage, EntrySelectHdl, MenuButton *, pButton, vo
             if ( pNameDialog->Execute() == RET_OK ) {
                 pNameDialog->GetName(aNewName);
 
-                if( aNewName == "" ) //tdf#80758 - Accelerator character ("~") is passed as
+                if( aNewName.isEmpty() ) //tdf#80758 - Accelerator character ("~") is passed as
                     pEntry->SetName( "~" ); // the button name in case of empty values.
                 else
                     pEntry->SetName( aNewName );


More information about the Libreoffice-commits mailing list