summaryrefslogtreecommitdiff
path: root/unoxml/source/dom/elementlist.cxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2012-01-08 03:34:57 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2012-01-08 03:35:43 +0900
commitff580eb39b46646309feba447f6bf485124db6b1 (patch)
tree5dbea85aed84589c0c1bd9859f487b9af0df7558 /unoxml/source/dom/elementlist.cxx
parent5b031b4ea68df5ca210a5631c801414b476d8094 (diff)
catch exception by constant reference
Diffstat (limited to 'unoxml/source/dom/elementlist.cxx')
-rw-r--r--unoxml/source/dom/elementlist.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/unoxml/source/dom/elementlist.cxx b/unoxml/source/dom/elementlist.cxx
index f12795273882..ae66fa6e8ed3 100644
--- a/unoxml/source/dom/elementlist.cxx
+++ b/unoxml/source/dom/elementlist.cxx
@@ -69,7 +69,7 @@ namespace DOM
sal_Bool capture = sal_False;
xTarget->addEventListener(aType,
Reference< XEventListener >(this), capture);
- } catch (Exception &e){
+ } catch (const Exception &e){
OString aMsg("Exception caught while registering NodeList as listener:\n");
aMsg += OUStringToOString(e.Message, RTL_TEXTENCODING_ASCII_US);
OSL_FAIL(aMsg.getStr());