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->dispose();
|
||||
}
|
||||
|
||||
catch(Exception e)
|
||||
catch (const Exception&)
|
||||
{
|
||||
// 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")) );
|
||||
TRACE( "FAILED\n" );
|
||||
}
|
||||
catch( NoSuchElementException e )
|
||||
catch (const NoSuchElementException&)
|
||||
{
|
||||
TRACE( "passed\n" );
|
||||
}
|
||||
}
|
||||
|
||||
catch ( Exception aException )
|
||||
catch (const Exception&)
|
||||
{
|
||||
ENSURE( sal_False, "*** ERROR *** exception caught." );
|
||||
}
|
||||
|
Reference in New Issue
Block a user