bool improvements
Change-Id: I75c137c1ed0c6089c5dfa8131ffde76cadda0134
This commit is contained in:
@@ -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 >() );
|
||||
|
@@ -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();
|
||||
}
|
||||
|
@@ -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" ),
|
||||
|
Reference in New Issue
Block a user