diff options
Diffstat (limited to 'vcl/generic/fontmanager/helper.cxx')
-rw-r--r-- | vcl/generic/fontmanager/helper.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/generic/fontmanager/helper.cxx b/vcl/generic/fontmanager/helper.cxx index 25c1c4f52c6a..7b1a5713da12 100644 --- a/vcl/generic/fontmanager/helper.cxx +++ b/vcl/generic/fontmanager/helper.cxx @@ -59,19 +59,19 @@ OUString getOfficePath( enum whichOfficePath ePath ) aBootstrap.getFrom( "UserInstallation", aUserPath ); OUString aUPath = aUserPath; - if( ! aConfigPath.compareToAscii( "file://", 7 ) ) + if( aConfigPath.startsWith( "file://" ) ) { OUString aSysPath; if( osl_getSystemPathFromFileURL( aConfigPath.pData, &aSysPath.pData ) == osl_File_E_None ) aConfigPath = aSysPath; } - if( ! aInstallationRootPath.compareToAscii( "file://", 7 ) ) + if( aInstallationRootPath.startsWith( "file://" ) ) { OUString aSysPath; if( osl_getSystemPathFromFileURL( aInstallationRootPath.pData, &aSysPath.pData ) == osl_File_E_None ) aInstallationRootPath = aSysPath; } - if( ! aUserPath.compareToAscii( "file://", 7 ) ) + if( aUserPath.startsWith( "file://" ) ) { OUString aSysPath; if( osl_getSystemPathFromFileURL( aUserPath.pData, &aSysPath.pData ) == osl_File_E_None ) |