diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-13 15:17:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-14 09:57:33 +0100 |
commit | f85076ca48e27c81cf4ce36f9b09fb55733db4ec (patch) | |
tree | 6e00adaf93aa6b5d5cc6b5087cb58fad880dc3c9 /sal/qa/systools | |
parent | 0d51eab31fa305a702218203e9683c102cfe83a2 (diff) |
catch by const reference
Diffstat (limited to 'sal/qa/systools')
-rw-r--r-- | sal/qa/systools/test_comtools.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/qa/systools/test_comtools.cxx b/sal/qa/systools/test_comtools.cxx index 9f39b854c06d..f09a7b4189f7 100644 --- a/sal/qa/systools/test_comtools.cxx +++ b/sal/qa/systools/test_comtools.cxx @@ -198,7 +198,7 @@ namespace test_comtools sal::systools::COMReference<IUnknown> r2 = r1.QueryInterface<IUnknown>(IID_IUnknown); CPPUNIT_ASSERT_MESSAGE("Wrong reference count, 2 is expected", reinterpret_cast<COMObject*>(r2.get())->GetRefCount() == 2); } - catch(sal::systools::ComError& ex) + catch(const sal::systools::ComError& ex) { CPPUNIT_ASSERT_MESSAGE("Exception should not have been thrown", false); } @@ -211,7 +211,7 @@ namespace test_comtools sal::systools::COMReference<IUnknown> r1 = comObjectSource(); sal::systools::COMReference<IPersistFile> r2 = r1.QueryInterface<IPersistFile>(IID_IPersistFile); } - catch(sal::systools::ComError& ex) + catch(const sal::systools::ComError& ex) { return; } |