catch by const reference
This commit is contained in:
@@ -219,8 +219,7 @@ void SAL_CALL ClipboardManager::dispose()
|
|||||||
xComponent->removeEventListener(static_cast < XEventListener * > (this));
|
xComponent->removeEventListener(static_cast < XEventListener * > (this));
|
||||||
xComponent->dispose();
|
xComponent->dispose();
|
||||||
}
|
}
|
||||||
|
catch (const Exception&)
|
||||||
catch(Exception e)
|
|
||||||
{
|
{
|
||||||
// exceptions can be safely ignored here.
|
// exceptions can be safely ignored here.
|
||||||
}
|
}
|
||||||
|
@@ -465,13 +465,13 @@ int SAL_CALL main( int argc, const char* argv[] )
|
|||||||
xClipboardManager->getClipboard( OUString(RTL_CONSTASCII_USTRINGPARAM("generic")) );
|
xClipboardManager->getClipboard( OUString(RTL_CONSTASCII_USTRINGPARAM("generic")) );
|
||||||
TRACE( "FAILED\n" );
|
TRACE( "FAILED\n" );
|
||||||
}
|
}
|
||||||
catch( NoSuchElementException e )
|
catch (const NoSuchElementException&)
|
||||||
{
|
{
|
||||||
TRACE( "passed\n" );
|
TRACE( "passed\n" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
catch ( Exception aException )
|
catch (const Exception&)
|
||||||
{
|
{
|
||||||
ENSURE( sal_False, "*** ERROR *** exception caught." );
|
ENSURE( sal_False, "*** ERROR *** exception caught." );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user