loplugin:simplifybool

Change-Id: Id90a959975033f1824ee312045a550195bd842ec
This commit is contained in:
Stephan Bergmann
2015-04-24 12:25:30 +02:00
parent 6cb8d552eb
commit aa449f87cf
2 changed files with 2 additions and 2 deletions

View File

@@ -288,7 +288,7 @@ static bool impl_checkDependencies( const uno::Reference< uno::XComponentContext
if ( reg.IsAmbiguous )
bRegistered = false;
else
bRegistered = reg.Value ? true : false;
bRegistered = reg.Value;
}
else
bRegistered = false;

View File

@@ -1489,7 +1489,7 @@ bool UpdateRequiredDialog::isEnabled( const uno::Reference< deployment::XPackage
if ( reg.IsAmbiguous )
bRegistered = false;
else
bRegistered = reg.Value ? true : false;
bRegistered = reg.Value;
}
else
bRegistered = false;