diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-01-11 12:56:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-01-11 13:17:08 +0100 |
commit | 00c62e306f4fd866f04a496a28c15d317ba02222 (patch) | |
tree | 7721f038bda5655f40b53da34c01459f37c9c326 /svtools/source/contnr | |
parent | 9ff5abf2e17e1f482a608c8c4a76b563fe8fe7e3 (diff) |
loplugin:privatebase: Publicly derive from binary_/unary_function
Somewhat arbitrarily prefer public over private derivation; ultimately,
derivation from those deprecated (C++11)/removed (C++17) classes should be
removed, anyway.
Change-Id: I5ed24427d37586e72f8c16509cf5002a54af73f1
Diffstat (limited to 'svtools/source/contnr')
-rw-r--r-- | svtools/source/contnr/treelist.cxx | 2 | ||||
-rw-r--r-- | svtools/source/contnr/treelistentry.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/contnr/treelist.cxx b/svtools/source/contnr/treelist.cxx index 8fc372fb9f05..c77c2c595d1c 100644 --- a/svtools/source/contnr/treelist.cxx +++ b/svtools/source/contnr/treelist.cxx @@ -183,7 +183,7 @@ bool SvTreeList::IsChild(const SvTreeListEntry* pParent, const SvTreeListEntry* namespace { -class FindByPointer : std::unary_function<SvTreeListEntry, bool> +class FindByPointer : public std::unary_function<SvTreeListEntry, bool> { const SvTreeListEntry* mpEntry; public: diff --git a/svtools/source/contnr/treelistentry.cxx b/svtools/source/contnr/treelistentry.cxx index e32c65d81262..a2ffa291658a 100644 --- a/svtools/source/contnr/treelistentry.cxx +++ b/svtools/source/contnr/treelistentry.cxx @@ -167,7 +167,7 @@ SvLBoxItem& SvTreeListEntry::GetItem( size_t nPos ) namespace { -class FindByType : std::unary_function<SvLBoxItem, void> +class FindByType : public std::unary_function<SvLBoxItem, void> { sal_uInt16 mnId; public: @@ -178,7 +178,7 @@ public: } }; -class FindByPointer : std::unary_function<SvLBoxItem, void> +class FindByPointer : public std::unary_function<SvLBoxItem, void> { const SvLBoxItem* mpItem; public: |