loplugin:simplifybool
Change-Id: Ie213b385d666aa17d47e6c85ff1fbdbc31bac0b9
This commit is contained in:
@@ -249,9 +249,9 @@ bool SvxSearchItem::GetWildcard() const
|
|||||||
{
|
{
|
||||||
// Ensure old and new algorithm types are in sync, in this case old is not
|
// Ensure old and new algorithm types are in sync, in this case old is not
|
||||||
// REGEXP or APPROXIMATE.
|
// 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_REGEXP &&
|
||||||
m_aSearchOpt.algorithmType != css::util::SearchAlgorithms_APPROXIMATE) : true );
|
m_aSearchOpt.algorithmType != css::util::SearchAlgorithms_APPROXIMATE) );
|
||||||
return m_aSearchOpt.AlgorithmType2 == css::util::SearchAlgorithms2::WILDCARD ;
|
return m_aSearchOpt.AlgorithmType2 == css::util::SearchAlgorithms2::WILDCARD ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user