summaryrefslogtreecommitdiff
path: root/extensions/source/propctrlr/propcontroller.cxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-12-10 22:14:57 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2011-12-10 22:16:07 +0900
commit93a9f170be76965ec004b200ac939e55e8382ca0 (patch)
tree2631f1e25117ae2bef93935fb3dab41d13c728db /extensions/source/propctrlr/propcontroller.cxx
parent1688a9d9235dd2ee4f3b9497308efd41f7a3fb6f (diff)
catch exception by constant reference
Diffstat (limited to 'extensions/source/propctrlr/propcontroller.cxx')
-rw-r--r--extensions/source/propctrlr/propcontroller.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/extensions/source/propctrlr/propcontroller.cxx b/extensions/source/propctrlr/propcontroller.cxx
index c67540bf73ea..63cb0e01053c 100644
--- a/extensions/source/propctrlr/propcontroller.cxx
+++ b/extensions/source/propctrlr/propcontroller.cxx
@@ -986,7 +986,7 @@ namespace pcr
UpdateUI();
}
- catch(Exception&)
+ catch(const Exception&)
{
OSL_FAIL("OPropertyBrowserController::impl_rebindToInspectee_nothrow: caught an exception !");
}
@@ -1117,7 +1117,7 @@ namespace pcr
// be notified when one of our inspectees dies
impl_toggleInspecteeListening_nothrow( true );
}
- catch(Exception&)
+ catch(const Exception&)
{
OSL_FAIL("OPropertyBrowserController::doInspection : caught an exception !");
}
@@ -1367,7 +1367,7 @@ namespace pcr
break;
}
}
- catch (Exception&)
+ catch (const Exception&)
{
DBG_UNHANDLED_EXCEPTION();
}
@@ -1430,14 +1430,14 @@ namespace pcr
// and display it again. This ensures proper formatting
getPropertyBox().SetPropertyValue( rName, aNormalizedValue, false );
}
- catch(PropertyVetoException& eVetoException)
+ catch(const PropertyVetoException& eVetoException)
{
InfoBox(m_pView, eVetoException.Message).Execute();
PropertyHandlerRef handler = impl_getHandlerForProperty_throw( rName );
Any aNormalizedValue = handler->getPropertyValue( rName );
getPropertyBox().SetPropertyValue( rName, aNormalizedValue, false );
}
- catch(Exception&)
+ catch(const Exception&)
{
OSL_FAIL("OPropertyBrowserController::Commit : caught an exception !");
}