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
Reference < XDispatch > xDispatcher ;
Reference < XURLTransformer > xParser ( URLTransformer::create(::comphelper::getProcessComponentContext()) );
if( xParser.is() == sal_True )
if( xParser.is() )
xParser->parseStrict( aURL );
xDispatcher = xDesktop->queryDispatch( aURL, OUString(), 0 );
if( xDispatcher.is() == sal_True )
if( xDispatcher.is() )
{
{
::osl::ClearableMutexGuard aGuard( GetMutex() );
......@@ -305,12 +305,12 @@ sal_Bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatch
Reference < XDispatch > xDispatcher ;
Reference < XURLTransformer > xParser ( URLTransformer::create(::comphelper::getProcessComponentContext()) );
if( xParser.is() == sal_True )
if( xParser.is() )
xParser->parseStrict( aURL );
xDispatcher = xDesktop->queryDispatch( aURL, OUString(), 0 );
if( xDispatcher.is() == sal_True )
if( xDispatcher.is() )
{
try
{
......
......@@ -563,7 +563,7 @@ void syncRepositories(
if (restarter.is())
{
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>());
}
}
......
......@@ -418,7 +418,7 @@ void SAL_CALL JavaMigration::setPropertyValue(
case ENABLE_JAVA:
{
sal_Bool val = sal_Bool();
if ((aValue >>= val) == sal_False)
if (!(aValue >>= val))
throw MalformedDataException(
OUString("[Service implementation ") + IMPL_NAME +
"] XLayerHandler::setPropertyValue received wrong type for Enable property", 0, Any());
......@@ -432,7 +432,7 @@ void SAL_CALL JavaMigration::setPropertyValue(
case USER_CLASS_PATH:
{
OUString cp;
if ((aValue >>= cp) == sal_False)
if (!(aValue >>= cp))
throw MalformedDataException(
OUString("[Service implementation ") + IMPL_NAME +
"] 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