summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-11-25 17:13:19 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-12-07 07:48:20 +0100
commite9774088efddff4383af4f3c55d9c8287d258212 (patch)
tree33f977c42cb54911c66d1dee69641e0c2817e886 /svl
parent665ac8f32d3aaaf7c27e8976e14fd4819edbf79b (diff)
Revert "Blind fix for pre-C++14 std::equal, for now"
This reverts commit 75299cd119dcb3121540471354d2b33af7f6684d, now that we have full C++17 support. Change-Id: I6616a724394d6f9f6c386f7aa48ee386433bec50 Reviewed-on: https://gerrit.libreoffice.org/63990 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/macitem.cxx19
1 files changed, 9 insertions, 10 deletions
diff --git a/svl/source/items/macitem.cxx b/svl/source/items/macitem.cxx
index 7cad10f07a63..f45b7bfe9bf2 100644
--- a/svl/source/items/macitem.cxx
+++ b/svl/source/items/macitem.cxx
@@ -81,16 +81,15 @@ bool SvxMacroTableDtor::operator==( const SvxMacroTableDtor& rOther ) const
{
// Count different => odd in any case
// Compare single ones; the sequence matters due to performance reasons
- 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();
- });
+ 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();
+ });
}
void SvxMacroTableDtor::Read( SvStream& rStrm )