diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-21 21:53:19 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-22 08:22:33 +0100 |
commit | 9e1ec4df0bb2f894333ef63f596b08e9ff79bdba (patch) | |
tree | 0601e21e0d8b096884390c70b8a421a09ba4d4c6 /scripting | |
parent | bool improvements (diff) | |
download | core-9e1ec4df0bb2f894333ef63f596b08e9ff79bdba.tar.gz core-9e1ec4df0bb2f894333ef63f596b08e9ff79bdba.zip |
bool improvements
Change-Id: I75c137c1ed0c6089c5dfa8131ffde76cadda0134
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/source/protocolhandler/scripthandler.cxx | 3 | ||||
-rw-r--r-- | scripting/source/provider/MasterScriptProvider.cxx | 2 | ||||
-rw-r--r-- | scripting/source/provider/URIHelper.cxx | 3 |
3 files changed, 3 insertions, 5 deletions
diff --git a/scripting/source/protocolhandler/scripthandler.cxx b/scripting/source/protocolhandler/scripthandler.cxx index 1f86d7b1a270..4aa7e2091b7c 100644 --- a/scripting/source/protocolhandler/scripthandler.cxx +++ b/scripting/source/protocolhandler/scripthandler.cxx @@ -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 >() ); diff --git a/scripting/source/provider/MasterScriptProvider.cxx b/scripting/source/provider/MasterScriptProvider.cxx index e5c540b35bf1..5a227c4bf998 100644 --- a/scripting/source/provider/MasterScriptProvider.cxx +++ b/scripting/source/provider/MasterScriptProvider.cxx @@ -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(); } diff --git a/scripting/source/provider/URIHelper.cxx b/scripting/source/provider/URIHelper.cxx index 6b49525b9575..c42931208960 100644 --- a/scripting/source/provider/URIHelper.cxx +++ b/scripting/source/provider/URIHelper.cxx @@ -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" ), |