From 64fd710cd57986f319bbb1a379cd674b134b5708 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 27 Apr 2015 15:28:18 +0200 Subject: More loplugin:simplifybool Change-Id: I68b98ad56d4487ff85b8e4555c94f6dd247c2012 --- linguistic/source/dicimp.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linguistic') diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx index 07ce3eb25bed..bdc7c30d8b86 100644 --- a/linguistic/source/dicimp.cxx +++ b/linguistic/source/dicimp.cxx @@ -335,7 +335,7 @@ sal_uLong DictionaryNeo::loadEntries(const OUString &rMainURL) OString aLine; // remaining lines - stock strings (a [==] b) - while (true == (bSuccess = pStream->ReadLine(aLine))) + while ((bSuccess = pStream->ReadLine(aLine))) { if (aLine[0] == '#') // skip comments continue; @@ -775,7 +775,7 @@ void SAL_CALL DictionaryNeo::setActive( sal_Bool bActivate ) DictionaryEventFlags::ACTIVATE_DIC : DictionaryEventFlags::DEACTIVATE_DIC; // remove entries from memory if dictionary is deactivated - if (bIsActive == false) + if (!bIsActive) { bool bIsEmpty = nCount == 0; -- cgit