summaryrefslogtreecommitdiffstats
path: root/svtools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-01-11 12:56:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-01-11 13:17:08 +0100
commit00c62e306f4fd866f04a496a28c15d317ba02222 (patch)
tree7721f038bda5655f40b53da34c01459f37c9c326 /svtools
parentloplugin:privatebase: Make derivation from noncopyable explicitly private (diff)
downloadcore-00c62e306f4fd866f04a496a28c15d317ba02222.tar.gz
core-00c62e306f4fd866f04a496a28c15d317ba02222.zip
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')
-rw-r--r--svtools/source/contnr/treelist.cxx2
-rw-r--r--svtools/source/contnr/treelistentry.cxx4
-rw-r--r--svtools/source/control/ctrlbox.cxx2
3 files changed, 4 insertions, 4 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:
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx
index 74d3f5b2b529..92f18c38fcf4 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: