Kaydet (Commit) 85b5e24b authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Needless indirection

Change-Id: Idf514941f4bb05834d8ac0d7bafbe86e34377611
üst 038683bf
...@@ -213,15 +213,10 @@ static bool getFromCommandLineArgs( ...@@ -213,15 +213,10 @@ static bool getFromCommandLineArgs(
return found; return found;
} }
inline void getExecutableFile_Impl (rtl_uString ** ppFileURL)
{
osl_bootstrap_getExecutableFile_Impl (ppFileURL);
}
static void getExecutableDirectory_Impl (rtl_uString ** ppDirURL) static void getExecutableDirectory_Impl (rtl_uString ** ppDirURL)
{ {
OUString fileName; OUString fileName;
getExecutableFile_Impl (&(fileName.pData)); osl_bootstrap_getExecutableFile_Impl (&(fileName.pData));
sal_Int32 nDirEnd = fileName.lastIndexOf('/'); sal_Int32 nDirEnd = fileName.lastIndexOf('/');
OSL_ENSURE(nDirEnd >= 0, "Cannot locate executable directory"); OSL_ENSURE(nDirEnd >= 0, "Cannot locate executable directory");
...@@ -259,7 +254,7 @@ static OUString & getIniFileName_Impl() ...@@ -259,7 +254,7 @@ static OUString & getIniFileName_Impl()
} }
else else
{ {
getExecutableFile_Impl (&(fileName.pData)); osl_bootstrap_getExecutableFile_Impl (&(fileName.pData));
// get rid of a potential executable extension // get rid of a potential executable extension
OUString progExt = ".bin"; OUString progExt = ".bin";
......
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