summaryrefslogtreecommitdiff
path: root/cppu/qa/test_reference.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-07-02 22:34:00 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-07-02 22:34:00 +0200
commitbdb21c75933fb62f4e28d31b6e908fdd1d5731d3 (patch)
treeda0a0c8fd3741a868cceed8cd22a45d9576d9d36 /cppu/qa/test_reference.cxx
parentd30f4e3647483b4ef9c98d0f9c93c50905005d3c (diff)
loplugin:casttovoid: cppu
Change-Id: I5f2880701f42000e15c148f3c14a211fbbcf2ef1
Diffstat (limited to 'cppu/qa/test_reference.cxx')
-rw-r--r--cppu/qa/test_reference.cxx8
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;