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

Some simplifications, using UNO_QUERY_THROW

Change-Id: Iaf7b4695e7930b8e7fa5dd3736d19744afb52fa3
Reviewed-on: https://gerrit.libreoffice.org/34254Tested-by: 's avatarStephan Bergmann <sbergman@redhat.com>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 223bb798
......@@ -1155,11 +1155,7 @@ sal_Int32 TestBridgeImpl::run( const Sequence< OUString > & rArgs )
{
throw RuntimeException( "cannot get test object!" );
}
Reference< XBridgeTest > xTest( xOriginal, UNO_QUERY );
if (! xTest.is())
{
throw RuntimeException( "test object does not implement XBridgeTest!" );
}
Reference< XBridgeTest > xTest( xOriginal, UNO_QUERY_THROW );
Reference<XBridgeTest > xLBT;
bRet = check( makeSurrogate( xLBT, xTest ), "makeSurrogate" );
......
......@@ -554,9 +554,7 @@ static void benchmark(
TimingSheet & rSheet, const Reference< XInterface > & xInstance, sal_Int64 nLoop )
throw (Exception)
{
Reference< XPerformanceTest > xBench( xInstance, UNO_QUERY );
if (! xBench.is())
throw RuntimeException("illegal test object!" );
Reference< XPerformanceTest > xBench( xInstance, UNO_QUERY_THROW );
sal_Int64 i;
sal_uInt32 tStart, tEnd;
......
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