summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svl/source/items/macitem.cxx19
1 files changed, 10 insertions, 9 deletions
diff --git a/svl/source/items/macitem.cxx b/svl/source/items/macitem.cxx
index 5cd29a0269d2..99375ea926a0 100644
--- a/svl/source/items/macitem.cxx
+++ b/svl/source/items/macitem.cxx
@@ -80,15 +80,16 @@ bool SvxMacroTableDtor::operator==( const SvxMacroTableDtor& rOther ) const
{
// Count different => odd in any case
// Compare single ones; the sequence matters due to performance reasons
- return std::equal(aSvxMacroTable.begin(), aSvxMacroTable.end(),
- rOther.aSvxMacroTable.begin(), rOther.aSvxMacroTable.end(),
- [](const SvxMacroTable::value_type& rOwnEntry, const SvxMacroTable::value_type& rOtherEntry) {
- const SvxMacro& rOwnMac = rOwnEntry.second;
- const SvxMacro& rOtherMac = rOtherEntry.second;
- return rOwnEntry.first == rOtherEntry.first
- && rOwnMac.GetLibName() == rOtherMac.GetLibName()
- && rOwnMac.GetMacName() == rOtherMac.GetMacName();
- });
+ return aSvxMacroTable.size() == rOther.aSvxMacroTable.size()
+ && std::equal(aSvxMacroTable.begin(), aSvxMacroTable.end(),
+ rOther.aSvxMacroTable.begin(),
+ [](const SvxMacroTable::value_type& rOwnEntry, const SvxMacroTable::value_type& rOtherEntry) {
+ const SvxMacro& rOwnMac = rOwnEntry.second;
+ const SvxMacro& rOtherMac = rOtherEntry.second;
+ return rOwnEntry.first == rOtherEntry.first
+ && rOwnMac.GetLibName() == rOtherMac.GetLibName()
+ && rOwnMac.GetMacName() == rOtherMac.GetMacName();
+ });
}
void SvxMacroTableDtor::Read( SvStream& rStrm )