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,
|
// first argument contains a reference to the frame (may be empty or the desktop,
|
||||||
// but usually it's a "real" frame)
|
// but usually it's a "real" frame)
|
||||||
if ( aArguments.getLength() &&
|
if ( aArguments.getLength() && !( aArguments[ 0 ] >>= m_xFrame ) )
|
||||||
sal_False == ( aArguments[ 0 ] >>= m_xFrame ) )
|
|
||||||
{
|
{
|
||||||
OUString temp = "ScriptProtocolHandler::initialize: could not extract reference to the frame";
|
OUString temp = "ScriptProtocolHandler::initialize: could not extract reference to the frame";
|
||||||
throw RuntimeException( temp, Reference< XInterface >() );
|
throw RuntimeException( temp, Reference< XInterface >() );
|
||||||
|
@@ -203,7 +203,7 @@ throw ( Exception, RuntimeException )
|
|||||||
}
|
}
|
||||||
m_sAargs = invokeArgs;
|
m_sAargs = invokeArgs;
|
||||||
// don't create pkg mgr MSP for documents, not supported
|
// 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();
|
createPkgProvider();
|
||||||
}
|
}
|
||||||
|
@@ -93,8 +93,7 @@ throw ( uno::Exception, uno::RuntimeException )
|
|||||||
uno::Reference< uno::XInterface >() );
|
uno::Reference< uno::XInterface >() );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( (args[0] >>= m_sLanguage) == sal_False ||
|
if ( !(args[0] >>= m_sLanguage) || !(args[1] >>= m_sLocation) )
|
||||||
(args[1] >>= m_sLocation) == sal_False )
|
|
||||||
{
|
{
|
||||||
throw uno::RuntimeException( OUString(
|
throw uno::RuntimeException( OUString(
|
||||||
"ScriptingFrameworkURIHelper error parsing args" ),
|
"ScriptingFrameworkURIHelper error parsing args" ),
|
||||||
|
Reference in New Issue
Block a user