[Libreoffice-commits] core.git: sal/osl sal/qa
Noel Grandin
noel at peralex.com
Mon Nov 2 02:42:50 PST 2015
sal/osl/unx/file_url.cxx | 2 +-
sal/qa/osl/file/osl_File.cxx | 2 +-
sal/qa/osl/module/osl_Module.cxx | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 253081247628923d53eccc2d027594add4e40b1f
Author: Noel Grandin <noel at peralex.com>
Date: Mon Nov 2 12:41:26 2015 +0200
loplugin:stringconstant
Change-Id: Id051dd984c24fb34dcc89060ed11955fed61fd48
diff --git a/sal/osl/unx/file_url.cxx b/sal/osl/unx/file_url.cxx
index ee5f038..45e96e7 100644
--- a/sal/osl/unx/file_url.cxx
+++ b/sal/osl/unx/file_url.cxx
@@ -693,7 +693,7 @@ oslFileError osl_searchFileURL(rtl_uString* ustrFilePath, rtl_uString* ustrSearc
rtl::OUString file_path;
// try to interpret search path as file url else assume it's a system path list
- rc = FileBase::getSystemPathFromFileURL(rtl::OUString(ustrFilePath), file_path);
+ rc = FileBase::getSystemPathFromFileURL(ustrFilePath, file_path);
if (FileBase::E_INVAL == rc)
file_path = ustrFilePath;
else if (FileBase::E_None != rc)
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx
index 7f5b848..7a03a69 100644
--- a/sal/qa/osl/file/osl_File.cxx
+++ b/sal/qa/osl/file/osl_File.cxx
@@ -4918,7 +4918,7 @@ namespace osl_Directory
void with_relative_path()
{
- FileBase::RC rc = Directory::createPath( OUString(TEST_PATH_POSTFIX));
+ FileBase::RC rc = Directory::createPath(TEST_PATH_POSTFIX);
CPPUNIT_ASSERT_MESSAGE
(
diff --git a/sal/qa/osl/module/osl_Module.cxx b/sal/qa/osl/module/osl_Module.cxx
index 9f6e8ae..171e9d6 100644
--- a/sal/qa/osl/module/osl_Module.cxx
+++ b/sal/qa/osl/module/osl_Module.cxx
@@ -135,7 +135,7 @@ namespace osl_Module
#if !defined( MACOSX )
// TODO: Find out why this fails on Mac OS X
::osl::Module aMod( getDllURL( ) );
- FuncPtr pFunc = reinterpret_cast<FuncPtr>(aMod.getSymbol( rtl::OUString("firstfunc") ));
+ FuncPtr pFunc = reinterpret_cast<FuncPtr>(aMod.getSymbol( "firstfunc" ));
OUString aFileURL;
bRes = osl::Module::getUrlFromAddress(
@@ -258,7 +258,7 @@ namespace osl_Module
#if !defined( MACOSX )
// TODO: Find out why this fails on Mac OS X
::osl::Module aMod( getDllURL( ) );
- FuncPtr pFunc = reinterpret_cast<FuncPtr>(aMod.getSymbol( rtl::OUString("firstfunc") ));
+ FuncPtr pFunc = reinterpret_cast<FuncPtr>(aMod.getSymbol( "firstfunc" ));
bRes = false;
if ( pFunc )
bRes = pFunc( bRes );
@@ -337,7 +337,7 @@ namespace osl_Module
#if !defined( MACOSX )
// TODO: Find out why this fails on Mac OS X
::osl::Module aMod( getDllURL( ) );
- oslGenericFunction oslFunc = aMod.getFunctionSymbol( rtl::OUString("firstfunc") );
+ oslGenericFunction oslFunc = aMod.getFunctionSymbol( "firstfunc" );
::rtl::OUString aLibraryURL;
bRes = ::osl::Module::getUrlFromAddress( oslFunc, aLibraryURL);
aMod.unload();
More information about the Libreoffice-commits
mailing list