diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-10 08:43:01 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-02-11 06:22:28 +0000 |
commit | 0f8ec3036f44b02aa03795ede3052a790134a90d (patch) | |
tree | a7cbba9eb70fcee3f793c07f8d8db6c092d0e594 /svl | |
parent | a6f876d45bd4e41a7143594a6cb11b6893a0f620 (diff) |
[API CHANGE] add operator==/!= to UNO structs
this is useful now that we are storing UNO structs in std::vector
Change-Id: Ic558bcd669bd2b3cdf9eb8393269eb906ac52369
Reviewed-on: https://gerrit.libreoffice.org/22257
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/items/srchitem.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svl/source/items/srchitem.cxx b/svl/source/items/srchitem.cxx index 994aea1007e5..d234969f52d0 100644 --- a/svl/source/items/srchitem.cxx +++ b/svl/source/items/srchitem.cxx @@ -232,7 +232,7 @@ SfxPoolItem* SvxSearchItem::Clone( SfxItemPool *) const //! used below -static bool operator == ( const SearchOptions& rItem1, const SearchOptions& rItem2 ) +static bool equalsWithoutLocale( const SearchOptions& rItem1, const SearchOptions& rItem2 ) { return rItem1.algorithmType == rItem2.algorithmType && rItem1.searchFlag == rItem2.searchFlag && @@ -262,7 +262,7 @@ bool SvxSearchItem::operator==( const SfxPoolItem& rItem ) const ( m_nCellType == rSItem.m_nCellType ) && ( m_nAppFlag == rSItem.m_nAppFlag ) && ( m_bAsianOptions == rSItem.m_bAsianOptions ) && - ( m_aSearchOpt == rSItem.m_aSearchOpt ) && + ( equalsWithoutLocale(m_aSearchOpt,rSItem.m_aSearchOpt )) && ( m_bNotes == rSItem.m_bNotes ); } |