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

Stephan Bergmann sbergman at redhat.com
Thu Sep 3 01:48:15 PDT 2015


 desktop/source/migration/migration.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7289f291fe6a43487c7edeb2b14169cc3a0d6694
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Sep 3 10:47:52 2015 +0200

    loplugin:stringconstant
    
    Change-Id: I97c8075569eccf7ea1c32466ed592337ca7181c4

diff --git a/desktop/source/migration/migration.cxx b/desktop/source/migration/migration.cxx
index c4dcec2..2b0a794 100644
--- a/desktop/source/migration/migration.cxx
+++ b/desktop/source/migration/migration.cxx
@@ -534,7 +534,7 @@ OUString MigrationImpl::preXDGConfigDir(const OUString& rConfigDir)
     // our user profiles, however *all* previous libreoffice and openoffice.org
     // configurations will be in the 'old' config directory and that's where we need
     // to search - we convert the returned config dir to the 'old' dir
-    if ( !pXDGCfgHome && rConfigDir.endsWithAsciiL( XDG_CONFIG_PART, sizeof( XDG_CONFIG_PART ) - 1 )  )
+    if ( !pXDGCfgHome && rConfigDir.endsWit( XDG_CONFIG_PART )  )
         // remove trailing '.config/' but leave the terminating '/'
         aPreXDGConfigPath = rConfigDir.copy( 0, rConfigDir.getLength() - sizeof(  XDG_CONFIG_PART ) + 2 );
     else


More information about the Libreoffice-commits mailing list