micro opts

This commit is contained in:
Caolán McNamara 2010-10-24 20:34:11 +01:00
parent 84f40b44e8
commit fff151e9c3
2 changed files with 2 additions and 2 deletions

View file

@ -765,7 +765,7 @@ namespace /* private */
bool find_in_PATH(const rtl::OUString& file_path, rtl::OUString& result)
{
bool bfound = false;
rtl::OUString path = rtl::OUString::createFromAscii("PATH");
rtl::OUString path(RTL_CONSTASCII_USTRINGPARAM("PATH"));
rtl::OUString env_path;
if (osl_Process_E_None == osl_getEnvironment(path.pData, &env_path.pData))

View file

@ -273,7 +273,7 @@ static OUString & getIniFileName_Impl()
&& fileName.copy(fileName.getLength() - progExt.getLength()).equalsIgnoreAsciiCase(progExt))
fileName = fileName.copy(0, fileName.getLength() - progExt.getLength());
progExt = OUString::createFromAscii(".exe");
progExt = OUString(RTL_CONSTASCII_USTRINGPARAM(".exe"));
if(fileName.getLength() > progExt.getLength()
&& fileName.copy(fileName.getLength() - progExt.getLength()).equalsIgnoreAsciiCase(progExt))
fileName = fileName.copy(0, fileName.getLength() - progExt.getLength());