summaryrefslogtreecommitdiff
path: root/sfx2/source/menu/thessubmenu.cxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-12-26 03:38:13 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2011-12-26 03:38:50 +0900
commit5451e9c702afb7c570662c740b33f2481abb7cb1 (patch)
treeef491adee50b35a977830dc9431eb308434cce4e /sfx2/source/menu/thessubmenu.cxx
parentbf2857d88af137ba15939d81970be92b0310c915 (diff)
catch exception by constant reference
Diffstat (limited to 'sfx2/source/menu/thessubmenu.cxx')
-rw-r--r--sfx2/source/menu/thessubmenu.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sfx2/source/menu/thessubmenu.cxx b/sfx2/source/menu/thessubmenu.cxx
index 01792d7edf03..39ba8a30533a 100644
--- a/sfx2/source/menu/thessubmenu.cxx
+++ b/sfx2/source/menu/thessubmenu.cxx
@@ -148,9 +148,8 @@ SfxThesSubMenuHelper::SfxThesSubMenuHelper()
"com.sun.star.linguistic2.LinguServiceManager" ))), uno::UNO_QUERY_THROW );
m_xThesarus = m_xLngMgr->getThesaurus();
}
- catch (uno::Exception &e)
+ catch (const uno::Exception &)
{
- (void) e;
DBG_ASSERT( 0, "failed to get thesaurus" );
}
}
@@ -204,9 +203,8 @@ bool SfxThesSubMenuHelper::GetMeanings(
bHasMoreSynonyms |= i < nMeanings; // any meaning skipped?
}
- catch (uno::Exception &e)
+ catch (const uno::Exception &)
{
- (void) e;
DBG_ASSERT( 0, "failed to get synonyms" );
}
}