Kaydet (Commit) bdb21c75 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:casttovoid: cppu

Change-Id: I5f2880701f42000e15c148f3c14a211fbbcf2ef1
üst d30f4e36
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment