diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-02-26 09:15:53 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-02-26 09:15:53 +0100 |
commit | 9634b3709798bbb690e3e4b6386329ac76c211b7 (patch) | |
tree | 67a5863701d75758bbbd16fcc861c34d299d6d95 /include/svl | |
parent | 49f81b3f33e1b043a1615855503768d78db5f093 (diff) |
loplugin:simplifybool
Change-Id: Ie213b385d666aa17d47e6c85ff1fbdbc31bac0b9
Diffstat (limited to 'include/svl')
-rw-r--r-- | include/svl/srchitem.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/svl/srchitem.hxx b/include/svl/srchitem.hxx index 6c997d5ade6c..18547bc69757 100644 --- a/include/svl/srchitem.hxx +++ b/include/svl/srchitem.hxx @@ -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 ; } |