diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-02 12:41:26 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-02 12:41:26 +0200 |
commit | 253081247628923d53eccc2d027594add4e40b1f (patch) | |
tree | abc6fabbdc8d0502e25aea906762702eba9d9b14 /sal | |
parent | 5797d29e9ead0a3dd181b616dfcc968a9127012d (diff) |
loplugin:stringconstant
Change-Id: Id051dd984c24fb34dcc89060ed11955fed61fd48
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/file_url.cxx | 2 | ||||
-rw-r--r-- | sal/qa/osl/file/osl_File.cxx | 2 | ||||
-rw-r--r-- | sal/qa/osl/module/osl_Module.cxx | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/sal/osl/unx/file_url.cxx b/sal/osl/unx/file_url.cxx index ee5f0382b6bc..45e96e72e173 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 7f5b8489152d..7a03a6920bbb 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 9f6e8ae64742..171e9d61b6b9 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(); |