Kaydet (Commit) 25308124 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:stringconstant

Change-Id: Id051dd984c24fb34dcc89060ed11955fed61fd48
üst 5797d29e
...@@ -693,7 +693,7 @@ oslFileError osl_searchFileURL(rtl_uString* ustrFilePath, rtl_uString* ustrSearc ...@@ -693,7 +693,7 @@ oslFileError osl_searchFileURL(rtl_uString* ustrFilePath, rtl_uString* ustrSearc
rtl::OUString file_path; rtl::OUString file_path;
// try to interpret search path as file url else assume it's a system path list // 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) if (FileBase::E_INVAL == rc)
file_path = ustrFilePath; file_path = ustrFilePath;
else if (FileBase::E_None != rc) else if (FileBase::E_None != rc)
......
...@@ -4918,7 +4918,7 @@ namespace osl_Directory ...@@ -4918,7 +4918,7 @@ namespace osl_Directory
void with_relative_path() void with_relative_path()
{ {
FileBase::RC rc = Directory::createPath( OUString(TEST_PATH_POSTFIX)); FileBase::RC rc = Directory::createPath(TEST_PATH_POSTFIX);
CPPUNIT_ASSERT_MESSAGE CPPUNIT_ASSERT_MESSAGE
( (
......
...@@ -135,7 +135,7 @@ namespace osl_Module ...@@ -135,7 +135,7 @@ namespace osl_Module
#if !defined( MACOSX ) #if !defined( MACOSX )
// TODO: Find out why this fails on Mac OS X // TODO: Find out why this fails on Mac OS X
::osl::Module aMod( getDllURL( ) ); ::osl::Module aMod( getDllURL( ) );
FuncPtr pFunc = reinterpret_cast<FuncPtr>(aMod.getSymbol( rtl::OUString("firstfunc") )); FuncPtr pFunc = reinterpret_cast<FuncPtr>(aMod.getSymbol( "firstfunc" ));
OUString aFileURL; OUString aFileURL;
bRes = osl::Module::getUrlFromAddress( bRes = osl::Module::getUrlFromAddress(
...@@ -258,7 +258,7 @@ namespace osl_Module ...@@ -258,7 +258,7 @@ namespace osl_Module
#if !defined( MACOSX ) #if !defined( MACOSX )
// TODO: Find out why this fails on Mac OS X // TODO: Find out why this fails on Mac OS X
::osl::Module aMod( getDllURL( ) ); ::osl::Module aMod( getDllURL( ) );
FuncPtr pFunc = reinterpret_cast<FuncPtr>(aMod.getSymbol( rtl::OUString("firstfunc") )); FuncPtr pFunc = reinterpret_cast<FuncPtr>(aMod.getSymbol( "firstfunc" ));
bRes = false; bRes = false;
if ( pFunc ) if ( pFunc )
bRes = pFunc( bRes ); bRes = pFunc( bRes );
...@@ -337,7 +337,7 @@ namespace osl_Module ...@@ -337,7 +337,7 @@ namespace osl_Module
#if !defined( MACOSX ) #if !defined( MACOSX )
// TODO: Find out why this fails on Mac OS X // TODO: Find out why this fails on Mac OS X
::osl::Module aMod( getDllURL( ) ); ::osl::Module aMod( getDllURL( ) );
oslGenericFunction oslFunc = aMod.getFunctionSymbol( rtl::OUString("firstfunc") ); oslGenericFunction oslFunc = aMod.getFunctionSymbol( "firstfunc" );
::rtl::OUString aLibraryURL; ::rtl::OUString aLibraryURL;
bRes = ::osl::Module::getUrlFromAddress( oslFunc, aLibraryURL); bRes = ::osl::Module::getUrlFromAddress( oslFunc, aLibraryURL);
aMod.unload(); aMod.unload();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment