diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-07 21:28:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-08 10:50:41 +0100 |
commit | bdbb385c77831a97090ffd019c49a39d3ae86e1e (patch) | |
tree | 6638111c7996093ee3f1280ada4172fd6c2d3b6c /i18npool | |
parent | 1737c0501328ac481601688021a662d4eccdfd5d (diff) |
catch by const reference
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/paper/paper.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/i18npool/source/paper/paper.cxx b/i18npool/source/paper/paper.cxx index 913cc7d834ed..fe376184edba 100644 --- a/i18npool/source/paper/paper.cxx +++ b/i18npool/source/paper/paper.cxx @@ -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"); |