loplugin:simplifybool

Change-Id: Ib1af2097743f81c0bdd237941eab017a5d463b37
This commit is contained in:
Stephan Bergmann
2015-07-16 13:50:26 +02:00
parent 2b88d7f90e
commit d9dd11e16d

View File

@@ -438,7 +438,7 @@ UpdateCheckConfig::storeUpdateFound( const UpdateInfo& rInfo, const OUString& aC
uno::makeAny(rInfo.BuildId), uno::makeAny(rInfo.BuildId),
uno::makeAny(rInfo.Description), uno::makeAny(rInfo.Description),
uno::makeAny(rInfo.Sources[0].URL), uno::makeAny(rInfo.Sources[0].URL),
uno::makeAny(rInfo.Sources[0].IsDirect ? sal_True : sal_False), uno::makeAny(rInfo.Sources[0].IsDirect),
uno::makeAny(getReleaseNote(rInfo, 1, autoDownloadEnabled) ), uno::makeAny(getReleaseNote(rInfo, 1, autoDownloadEnabled) ),
uno::makeAny(getReleaseNote(rInfo, 2, autoDownloadEnabled) ), uno::makeAny(getReleaseNote(rInfo, 2, autoDownloadEnabled) ),
uno::makeAny(getReleaseNote(rInfo, 3, autoDownloadEnabled) ), uno::makeAny(getReleaseNote(rInfo, 3, autoDownloadEnabled) ),
@@ -596,7 +596,7 @@ UpdateCheckConfig::commitChanges()
{ {
sal_Bool bEnabled = sal_False; sal_Bool bEnabled = sal_False;
aChangesSet[i].Element >>= bEnabled; aChangesSet[i].Element >>= bEnabled;
m_rListener->autoCheckStatusChanged(sal_True == bEnabled); m_rListener->autoCheckStatusChanged(bEnabled);
} }
else if( aString.endsWith(CHECK_INTERVAL "']") ) else if( aString.endsWith(CHECK_INTERVAL "']") )
{ {