catch by const reference
This commit is contained in:
parent
1737c05013
commit
bdbb385c77
1 changed files with 4 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue