summaryrefslogtreecommitdiff
path: root/unodevtools
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2012-01-07 15:50:41 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2012-01-07 15:51:31 +0900
commite4ce7225dd987f9b2f250f055d9688de79931444 (patch)
tree410ae8624915809274fc28759eef78919a980f60 /unodevtools
parentd74c77428deba9619c678a59d6442ec281385264 (diff)
catch exception by constant reference
Diffstat (limited to 'unodevtools')
-rw-r--r--unodevtools/source/skeletonmaker/cppcompskeleton.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/unodevtools/source/skeletonmaker/cppcompskeleton.cxx b/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
index d7e484e49ff6..648efa6c667e 100644
--- a/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
+++ b/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
@@ -1087,7 +1087,7 @@ void generateSkeleton(ProgramOptions const & options,
delete pofs;
OSL_VERIFY(makeValidTypeFile(compFileName, tmpFileName, sal_False));
}
- } catch(CannotDumpException& e) {
+ } catch(const CannotDumpException& e) {
std::cerr << "ERROR: " << e.m_message.getStr() << "\n";
if ( !standardout ) {
@@ -1251,7 +1251,7 @@ void generateCalcAddin(ProgramOptions const & options,
delete pofs;
OSL_VERIFY(makeValidTypeFile(compFileName, tmpFileName, sal_False));
}
- } catch(CannotDumpException& e) {
+ } catch(const CannotDumpException& e) {
std::cerr << "ERROR: " << e.m_message.getStr() << "\n";
if ( !standardout ) {