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 >() );

View File

@@ -203,7 +203,7 @@ throw ( Exception, RuntimeException )
}
m_sAargs = invokeArgs;
// don't create pkg mgr MSP for documents, not supported
if ( m_bIsPkgMSP == sal_False && !m_xModel.is() )
if ( !m_bIsPkgMSP && !m_xModel.is() )
{
createPkgProvider();
}

View File

@@ -93,8 +93,7 @@ throw ( uno::Exception, uno::RuntimeException )
uno::Reference< uno::XInterface >() );
}
if ( (args[0] >>= m_sLanguage) == sal_False ||
(args[1] >>= m_sLocation) == sal_False )
if ( !(args[0] >>= m_sLanguage) || !(args[1] >>= m_sLocation) )
{
throw uno::RuntimeException( OUString(
"ScriptingFrameworkURIHelper error parsing args" ),