summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/printhelper.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-12-21 23:27:48 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-12-22 09:07:47 +0000
commitbe4db0569c947179b0facf367862213748982361 (patch)
tree11a36f5643e4e597b21f7e15d447ae9470cffbb7 /sfx2/source/doc/printhelper.cxx
parent7a6efedd9eb4dea9abc9d1fd1f6362092ce01f78 (diff)
catch by const ref
Diffstat (limited to 'sfx2/source/doc/printhelper.cxx')
-rw-r--r--sfx2/source/doc/printhelper.cxx20
1 files changed, 16 insertions, 4 deletions
diff --git a/sfx2/source/doc/printhelper.cxx b/sfx2/source/doc/printhelper.cxx
index 24dcd6669834..9206d3a1bfee 100644
--- a/sfx2/source/doc/printhelper.cxx
+++ b/sfx2/source/doc/printhelper.cxx
@@ -556,10 +556,22 @@ class ImplUCBPrintWatcher : public ::osl::Thread
::com::sun::star::ucb::NameClash::OVERWRITE);
}
}
- catch( ::com::sun::star::ucb::ContentCreationException& ) { OSL_FAIL("content create exception"); }
- catch( ::com::sun::star::ucb::CommandAbortedException& ) { OSL_FAIL("command abort exception"); }
- catch( ::com::sun::star::uno::RuntimeException& ) { OSL_FAIL("runtime exception"); }
- catch( ::com::sun::star::uno::Exception& ) { OSL_FAIL("unknown exception"); }
+ catch (const ::com::sun::star::ucb::ContentCreationException&)
+ {
+ OSL_FAIL("content create exception");
+ }
+ catch (const ::com::sun::star::ucb::CommandAbortedException&)
+ {
+ OSL_FAIL("command abort exception");
+ }
+ catch (const ::com::sun::star::uno::RuntimeException&)
+ {
+ OSL_FAIL("runtime exception");
+ }
+ catch (const ::com::sun::star::uno::Exception&)
+ {
+ OSL_FAIL("unknown exception");
+ }
// kill the temp file!
delete *ppTempFile;