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

Tor Lillqvist tml at collabora.com
Tue Sep 15 00:27:42 PDT 2015


 cui/source/options/optpath.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 2ba8a592ca6f3035a2e3d5fe85c14122d8d0049c
Author: Tor Lillqvist <tml at collabora.com>
Date:   Tue Sep 15 10:23:52 2015 +0300

    WaE: loplugin:stringconstant
    
    Fix warning: in call of rtl::OUString::operator+=, replace OUString
    constructed from an ASCII char constant with a string literal.
    
    Change-Id: I56ccf89b6b6b8c8b9a0d54ba688adc5c45ec28e1

diff --git a/cui/source/options/optpath.cxx b/cui/source/options/optpath.cxx
index 2aa6aaf..a60d36d 100644
--- a/cui/source/options/optpath.cxx
+++ b/cui/source/options/optpath.cxx
@@ -598,12 +598,12 @@ IMPL_LINK_NOARG_TYPED(SvxPathTabPage, PathHdl_Impl, Button*, void)
                             break;
                         }
                         if ( !sUser.isEmpty() )
-                            sUser += OUString(cDelim);
+                            sUser += OUStringLiteral1<MULTIPATH_DELIMITER>();
                         sUser += sToken;
                     }
                     sFullPath = sUser;
                     if ( !sFullPath.isEmpty() )
-                        sFullPath += OUString(cDelim);
+                        sFullPath += OUStringLiteral1<MULTIPATH_DELIMITER>();
                     sFullPath += sWritable;
                 }
 


More information about the Libreoffice-commits mailing list