loplugin:simplifybool

Change-Id: Ie213b385d666aa17d47e6c85ff1fbdbc31bac0b9
This commit is contained in:
Stephan Bergmann
2016-02-26 09:15:53 +01:00
parent 49f81b3f33
commit 9634b37097

View File

@@ -249,9 +249,9 @@ bool SvxSearchItem::GetWildcard() const
{
// Ensure old and new algorithm types are in sync, in this case old is not
// REGEXP or APPROXIMATE.
assert( (m_aSearchOpt.AlgorithmType2 == css::util::SearchAlgorithms2::WILDCARD) ?
assert( m_aSearchOpt.AlgorithmType2 != css::util::SearchAlgorithms2::WILDCARD ||
(m_aSearchOpt.algorithmType != css::util::SearchAlgorithms_REGEXP &&
m_aSearchOpt.algorithmType != css::util::SearchAlgorithms_APPROXIMATE) : true );
m_aSearchOpt.algorithmType != css::util::SearchAlgorithms_APPROXIMATE) );
return m_aSearchOpt.AlgorithmType2 == css::util::SearchAlgorithms2::WILDCARD ;
}