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
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)
......
......@@ -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
(
......
......@@ -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();
......
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