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 /editeng/source | |
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 'editeng/source')
-rw-r--r-- | editeng/source/editeng/editdoc.cxx | 10 | ||||
-rw-r--r-- | editeng/source/editeng/editobj.cxx | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index fddb24702924..58be84016e0b 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -465,7 +465,7 @@ void TextPortionList::Remove(sal_Int32 nPos) namespace { -class FindTextPortionByAddress : std::unary_function<std::unique_ptr<TextPortion>, bool> +class FindTextPortionByAddress : public std::unary_function<std::unique_ptr<TextPortion>, bool> { const TextPortion* mp; public: @@ -1984,7 +1984,7 @@ EditDoc::~EditDoc() namespace { -class RemoveEachItemFromPool : std::unary_function<std::unique_ptr<ContentNode>, void> +class RemoveEachItemFromPool : public std::unary_function<std::unique_ptr<ContentNode>, void> { EditDoc& mrDoc; public: @@ -2890,7 +2890,7 @@ bool CharAttribList::HasAttrib( sal_Int32 nStartPos, sal_Int32 nEndPos ) const namespace { -class FindByAddress : std::unary_function<std::unique_ptr<EditCharAttrib>, bool> +class FindByAddress : public std::unary_function<std::unique_ptr<EditCharAttrib>, bool> { const EditCharAttrib* mpAttr; public: @@ -2955,7 +2955,7 @@ EditCharAttrib* CharAttribList::FindEmptyAttrib( sal_uInt16 nWhich, sal_Int32 nP namespace { -class FindByStartPos : std::unary_function<std::unique_ptr<EditCharAttrib>, bool> +class FindByStartPos : public std::unary_function<std::unique_ptr<EditCharAttrib>, bool> { sal_Int32 mnPos; public: @@ -2985,7 +2985,7 @@ const EditCharAttrib* CharAttribList::FindFeature( sal_Int32 nPos ) const namespace { -class RemoveEmptyAttrItem : std::unary_function<std::unique_ptr<EditCharAttrib>, void> +class RemoveEmptyAttrItem : public std::unary_function<std::unique_ptr<EditCharAttrib>, void> { SfxItemPool& mrItemPool; public: diff --git a/editeng/source/editeng/editobj.cxx b/editeng/source/editeng/editobj.cxx index 0364ba12c84f..d6bb729eab8c 100644 --- a/editeng/source/editeng/editobj.cxx +++ b/editeng/source/editeng/editobj.cxx @@ -872,7 +872,7 @@ bool EditTextObjectImpl::RemoveCharAttribs( sal_uInt16 _nWhich ) namespace { -class FindByParagraph : std::unary_function<editeng::Section, bool> +class FindByParagraph : public std::unary_function<editeng::Section, bool> { sal_Int32 mnPara; public: @@ -883,7 +883,7 @@ public: } }; -class FindBySectionStart : std::unary_function<editeng::Section, bool> +class FindBySectionStart : public std::unary_function<editeng::Section, bool> { sal_Int32 mnPara; sal_Int32 mnStart; |