diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-01-11 12:56:58 +0100 |
---|---|---|
committer | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2016-07-20 01:25:54 -0400 |
commit | 39214a9c36b64ccd48c2ad5aae3b5849028cc0f6 (patch) | |
tree | 3972957e35ffea8dd22294c8e33ef2c1225a6fbd /svtools | |
parent | d955148381be3496b091fab7c2335d080634d376 (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
(cherry picked from commit 00c62e306f4fd866f04a496a28c15d317ba02222)
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/treelist.cxx | 2 | ||||
-rw-r--r-- | svtools/source/contnr/treelistentry.cxx | 4 | ||||
-rw-r--r-- | svtools/source/control/ctrlbox.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/contnr/treelist.cxx b/svtools/source/contnr/treelist.cxx index f842d3cfcb0c..33961486fd18 100644 --- a/svtools/source/contnr/treelist.cxx +++ b/svtools/source/contnr/treelist.cxx @@ -182,7 +182,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 8fd1fc1f6f16..19c0b0df419c 100644 --- a/svtools/source/contnr/treelistentry.cxx +++ b/svtools/source/contnr/treelistentry.cxx @@ -166,7 +166,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: @@ -177,7 +177,7 @@ public: } }; -class FindByPointer : std::unary_function<SvLBoxItem, void> +class FindByPointer : public std::unary_function<SvLBoxItem, void> { const SvLBoxItem* mpItem; public: diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index 450fb4de2760..1c2742bd229f 100644 --- a/svtools/source/control/ctrlbox.cxx +++ b/svtools/source/control/ctrlbox.cxx @@ -588,7 +588,7 @@ std::vector<double> GetDashing( sal_uInt16 nDashing ) namespace { -class ApplyScale : std::unary_function<double, void> +class ApplyScale : public std::unary_function<double, void> { double mfScale; public: |