diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-26 03:38:13 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-26 03:38:50 +0900 |
commit | 5451e9c702afb7c570662c740b33f2481abb7cb1 (patch) | |
tree | ef491adee50b35a977830dc9431eb308434cce4e /sfx2/qa | |
parent | bf2857d88af137ba15939d81970be92b0310c915 (diff) |
catch exception by constant reference
Diffstat (limited to 'sfx2/qa')
-rw-r--r-- | sfx2/qa/cppunit/test_metadatable.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/qa/cppunit/test_metadatable.cxx b/sfx2/qa/cppunit/test_metadatable.cxx index b23bad29b036..eb239f7743f0 100644 --- a/sfx2/qa/cppunit/test_metadatable.cxx +++ b/sfx2/qa/cppunit/test_metadatable.cxx @@ -134,7 +134,7 @@ void MetadatableTest::test() try { m2.SetMetadataReference(id1); CPPUNIT_ASSERT_MESSAGE("set duplicate succeeded", false); - } catch (lang::IllegalArgumentException) { } + } catch (const lang::IllegalArgumentException &) { } m1.SetMetadataReference(id1); CPPUNIT_ASSERT_MESSAGE("set failed (existing)", m1.GetMetadataReference() == id1); @@ -205,7 +205,7 @@ void MetadatableTest::test() try { mc2.SetMetadataReference(id2); CPPUNIT_FAIL("set duplicate succeeded"); - } catch (lang::IllegalArgumentException) { } + } catch (const lang::IllegalArgumentException &) { } mc1.SetMetadataReference(id2); CPPUNIT_ASSERT_MESSAGE("set failed (existing)", mc1.GetMetadataReference() == id2); |