catch by const reference

This commit is contained in:
Caolán McNamara 2011-07-07 21:28:25 +01:00
parent 1737c05013
commit bdbb385c77

View file

@ -247,7 +247,7 @@ PaperInfo PaperInfo::getSystemDefaultPaper()
// try user-defined locale setting
xConfigNA->getByName( CREATE_OUSTRING( "ooSetupSystemLocale" ) ) >>= aLocaleStr;
}
catch( Exception& )
catch(const Exception&)
{
}
@ -377,7 +377,9 @@ PaperInfo PaperInfo::getSystemDefaultPaper()
xConfigNA->getByName( CREATE_OUSTRING( "Locale" ) ) >>= aLocaleStr;
}
}
catch( Exception& ) {}
catch(const Exception&)
{
}
if (aLocaleStr.getLength() == 0)
aLocaleStr = CREATE_OUSTRING("en-US");