summaryrefslogtreecommitdiff
path: root/desktop/source/app/langselect.cxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-12-06 00:19:44 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2011-12-06 00:20:08 +0900
commit877da827a7aab5a7fb6bc3f84c2d5a48cac381ff (patch)
tree1e7ffcfc4020227cd1662cffb8ad894e3398e5a2 /desktop/source/app/langselect.cxx
parentac9f72d9627f979f1e4bd0490578aba1ede577d4 (diff)
catch exception by constant reference
Diffstat (limited to 'desktop/source/app/langselect.cxx')
-rw-r--r--desktop/source/app/langselect.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/desktop/source/app/langselect.cxx b/desktop/source/app/langselect.cxx
index 5b11e01588df..f502cc82a2ad 100644
--- a/desktop/source/app/langselect.cxx
+++ b/desktop/source/app/langselect.cxx
@@ -159,7 +159,7 @@ bool LanguageSelection::prepareLanguage()
xLocaleProp->getPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("Locale"))) >>= usLocale;
setDefaultLanguage(usLocale);
}
- catch (Exception&)
+ catch (const Exception&)
{
m_eStatus = LS_STATUS_CONFIGURATIONACCESS_BROKEN;
}
@@ -246,11 +246,11 @@ bool LanguageSelection::prepareLanguage()
bSuccess = sal_True;
}
- catch ( PropertyVetoException& )
+ catch ( const PropertyVetoException& )
{
// we are not allowed to change this
}
- catch (Exception& e)
+ catch (const Exception& e)
{
OString aMsg = OUStringToOString(e.Message, RTL_TEXTENCODING_ASCII_US);
OSL_FAIL(aMsg.getStr());
@@ -373,7 +373,7 @@ Reference< XNameAccess > LanguageSelection::getConfigAccess(const sal_Char* pPat
xNameAccess = Reference< XNameAccess > (
theConfigProvider->createInstanceWithArguments(
sAccessSrvc, theArgs ), UNO_QUERY_THROW );
- } catch (com::sun::star::uno::Exception& e)
+ } catch (const com::sun::star::uno::Exception& e)
{
OString aMsg = OUStringToOString(e.Message, RTL_TEXTENCODING_ASCII_US);
OSL_FAIL(aMsg.getStr());
@@ -519,11 +519,11 @@ void LanguageSelection::resetUserLanguage()
xProp->setPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("UILocale")), makeAny(OUString()));
Reference< XChangesBatch >(xProp, UNO_QUERY_THROW)->commitChanges();
}
- catch ( PropertyVetoException& )
+ catch ( const PropertyVetoException& )
{
// we are not allowed to change this
}
- catch ( Exception& e)
+ catch (const Exception& e)
{
OString aMsg = OUStringToOString(e.Message, RTL_TEXTENCODING_ASCII_US);
OSL_FAIL(aMsg.getStr());