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 | |
parent | header for rtl::OStringBuffer (diff) | |
download | core-bdbb385c77831a97090ffd019c49a39d3ae86e1e.tar.gz core-bdbb385c77831a97090ffd019c49a39d3ae86e1e.zip |
catch by const reference
-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"); |