Kaydet (Commit) fff151e9 authored tarafından Caolán McNamara's avatar Caolán McNamara

micro opts

üst 84f40b44
...@@ -765,7 +765,7 @@ namespace /* private */ ...@@ -765,7 +765,7 @@ namespace /* private */
bool find_in_PATH(const rtl::OUString& file_path, rtl::OUString& result) bool find_in_PATH(const rtl::OUString& file_path, rtl::OUString& result)
{ {
bool bfound = false; bool bfound = false;
rtl::OUString path = rtl::OUString::createFromAscii("PATH"); rtl::OUString path(RTL_CONSTASCII_USTRINGPARAM("PATH"));
rtl::OUString env_path; rtl::OUString env_path;
if (osl_Process_E_None == osl_getEnvironment(path.pData, &env_path.pData)) if (osl_Process_E_None == osl_getEnvironment(path.pData, &env_path.pData))
......
...@@ -273,7 +273,7 @@ static OUString & getIniFileName_Impl() ...@@ -273,7 +273,7 @@ static OUString & getIniFileName_Impl()
&& fileName.copy(fileName.getLength() - progExt.getLength()).equalsIgnoreAsciiCase(progExt)) && fileName.copy(fileName.getLength() - progExt.getLength()).equalsIgnoreAsciiCase(progExt))
fileName = fileName.copy(0, fileName.getLength() - progExt.getLength()); fileName = fileName.copy(0, fileName.getLength() - progExt.getLength());
progExt = OUString::createFromAscii(".exe"); progExt = OUString(RTL_CONSTASCII_USTRINGPARAM(".exe"));
if(fileName.getLength() > progExt.getLength() if(fileName.getLength() > progExt.getLength()
&& fileName.copy(fileName.getLength() - progExt.getLength()).equalsIgnoreAsciiCase(progExt)) && fileName.copy(fileName.getLength() - progExt.getLength()).equalsIgnoreAsciiCase(progExt))
fileName = fileName.copy(0, fileName.getLength() - progExt.getLength()); fileName = fileName.copy(0, fileName.getLength() - progExt.getLength());
......
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