diff options
Diffstat (limited to 'cppu/qa/test_reference.cxx')
-rw-r--r-- | cppu/qa/test_reference.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cppu/qa/test_reference.cxx b/cppu/qa/test_reference.cxx index 3c6b7af1eb9e..e02db2dce445 100644 --- a/cppu/qa/test_reference.cxx +++ b/cppu/qa/test_reference.cxx @@ -154,20 +154,20 @@ void Test::testUnoSetThrow() // ctor taking Reference< interface_type > bool bCaughtException = false; - try { Reference< Interface1 > x( xNull, UNO_SET_THROW ); (void)x; } catch( const RuntimeException& ) { bCaughtException = true; } + try { Reference< Interface1 > x( xNull, UNO_SET_THROW ); } catch( const RuntimeException& ) { bCaughtException = true; } CPPUNIT_ASSERT_EQUAL( true, bCaughtException ); bCaughtException = false; - try { Reference< Interface1 > x( xFoo, UNO_SET_THROW ); (void)x; } catch( const RuntimeException& ) { bCaughtException = true; } + try { Reference< Interface1 > x( xFoo, UNO_SET_THROW ); } catch( const RuntimeException& ) { bCaughtException = true; } CPPUNIT_ASSERT_EQUAL( false, bCaughtException ); // ctor taking interface_type* bCaughtException = false; - try { Reference< Interface1 > x( xNull.get(), UNO_SET_THROW ); (void)x; } catch( const RuntimeException& ) { bCaughtException = true; } + try { Reference< Interface1 > x( xNull.get(), UNO_SET_THROW ); } catch( const RuntimeException& ) { bCaughtException = true; } CPPUNIT_ASSERT_EQUAL( true, bCaughtException ); bCaughtException = false; - try { Reference< Interface1 > x( xFoo.get(), UNO_SET_THROW ); (void)x; } catch( const RuntimeException& ) { bCaughtException = true; } + try { Reference< Interface1 > x( xFoo.get(), UNO_SET_THROW ); } catch( const RuntimeException& ) { bCaughtException = true; } CPPUNIT_ASSERT_EQUAL( false, bCaughtException ); Reference< Interface1 > x; |