Kaydet (Commit) 0e5c7d0b authored tarafından Stephan Bergmann's avatar Stephan Bergmann

bool improvements

Change-Id: Iddc92e42a100a0fb36c77c21d4c176dded8f3391
üst 9e1ec4df
...@@ -277,12 +277,12 @@ sal_Bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatch ...@@ -277,12 +277,12 @@ sal_Bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatch
Reference < XDispatch > xDispatcher ; Reference < XDispatch > xDispatcher ;
Reference < XURLTransformer > xParser ( URLTransformer::create(::comphelper::getProcessComponentContext()) ); Reference < XURLTransformer > xParser ( URLTransformer::create(::comphelper::getProcessComponentContext()) );
if( xParser.is() == sal_True ) if( xParser.is() )
xParser->parseStrict( aURL ); xParser->parseStrict( aURL );
xDispatcher = xDesktop->queryDispatch( aURL, OUString(), 0 ); xDispatcher = xDesktop->queryDispatch( aURL, OUString(), 0 );
if( xDispatcher.is() == sal_True ) if( xDispatcher.is() )
{ {
{ {
::osl::ClearableMutexGuard aGuard( GetMutex() ); ::osl::ClearableMutexGuard aGuard( GetMutex() );
...@@ -305,12 +305,12 @@ sal_Bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatch ...@@ -305,12 +305,12 @@ sal_Bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatch
Reference < XDispatch > xDispatcher ; Reference < XDispatch > xDispatcher ;
Reference < XURLTransformer > xParser ( URLTransformer::create(::comphelper::getProcessComponentContext()) ); Reference < XURLTransformer > xParser ( URLTransformer::create(::comphelper::getProcessComponentContext()) );
if( xParser.is() == sal_True ) if( xParser.is() )
xParser->parseStrict( aURL ); xParser->parseStrict( aURL );
xDispatcher = xDesktop->queryDispatch( aURL, OUString(), 0 ); xDispatcher = xDesktop->queryDispatch( aURL, OUString(), 0 );
if( xDispatcher.is() == sal_True ) if( xDispatcher.is() )
{ {
try try
{ {
......
...@@ -563,7 +563,7 @@ void syncRepositories( ...@@ -563,7 +563,7 @@ void syncRepositories(
if (restarter.is()) if (restarter.is())
{ {
OSL_TRACE( "Request restart for modified extensions manager" ); OSL_TRACE( "Request restart for modified extensions manager" );
restarter->requestRestart(xCmdEnv.is() == sal_True ? xCmdEnv->getInteractionHandler() : restarter->requestRestart(xCmdEnv.is() ? xCmdEnv->getInteractionHandler() :
Reference<task::XInteractionHandler>()); Reference<task::XInteractionHandler>());
} }
} }
......
...@@ -418,7 +418,7 @@ void SAL_CALL JavaMigration::setPropertyValue( ...@@ -418,7 +418,7 @@ void SAL_CALL JavaMigration::setPropertyValue(
case ENABLE_JAVA: case ENABLE_JAVA:
{ {
sal_Bool val = sal_Bool(); sal_Bool val = sal_Bool();
if ((aValue >>= val) == sal_False) if (!(aValue >>= val))
throw MalformedDataException( throw MalformedDataException(
OUString("[Service implementation ") + IMPL_NAME + OUString("[Service implementation ") + IMPL_NAME +
"] XLayerHandler::setPropertyValue received wrong type for Enable property", 0, Any()); "] XLayerHandler::setPropertyValue received wrong type for Enable property", 0, Any());
...@@ -432,7 +432,7 @@ void SAL_CALL JavaMigration::setPropertyValue( ...@@ -432,7 +432,7 @@ void SAL_CALL JavaMigration::setPropertyValue(
case USER_CLASS_PATH: case USER_CLASS_PATH:
{ {
OUString cp; OUString cp;
if ((aValue >>= cp) == sal_False) if (!(aValue >>= cp))
throw MalformedDataException( throw MalformedDataException(
OUString("[Service implementation ") + IMPL_NAME + OUString("[Service implementation ") + IMPL_NAME +
"] XLayerHandler::setPropertyValue received wrong type for UserClassPath property", 0, Any()); "] XLayerHandler::setPropertyValue received wrong type for UserClassPath property", 0, Any());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment