catch by const ref

This commit is contained in:
Caolán McNamara 2011-12-28 09:02:36 +00:00
parent 697415eb4e
commit 5a4c200bb7

View file

@ -46,7 +46,7 @@ IniParser::IniParser(OUString const & rIniName) throw(com::sun::star::io::IOExce
if (!iniUrl.isEmpty()) if (!iniUrl.isEmpty())
fileError = osl_openFile(iniUrl.pData, &handle, osl_File_OpenFlag_Read); fileError = osl_openFile(iniUrl.pData, &handle, osl_File_OpenFlag_Read);
} }
catch(::com::sun::star::io::IOException&) catch(const ::com::sun::star::io::IOException&)
{ {
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
OString file_tmp = OUStringToOString(iniUrl, RTL_TEXTENCODING_ASCII_US); OString file_tmp = OUStringToOString(iniUrl, RTL_TEXTENCODING_ASCII_US);