bool improvements

Change-Id: I75c137c1ed0c6089c5dfa8131ffde76cadda0134
This commit is contained in:
Stephan Bergmann
2014-01-21 21:53:19 +01:00
parent d980ba7a9d
commit 9e1ec4df0b
3 changed files with 3 additions and 5 deletions

View File

@@ -79,8 +79,7 @@ void SAL_CALL ScriptProtocolHandler::initialize(
// first argument contains a reference to the frame (may be empty or the desktop,
// but usually it's a "real" frame)
if ( aArguments.getLength() &&
sal_False == ( aArguments[ 0 ] >>= m_xFrame ) )
if ( aArguments.getLength() && !( aArguments[ 0 ] >>= m_xFrame ) )
{
OUString temp = "ScriptProtocolHandler::initialize: could not extract reference to the frame";
throw RuntimeException( temp, Reference< XInterface >() );