include/vcl/toolkit/button.hxx | 14 ++++++-------- vcl/qa/cppunit/lifecycle.cxx | 3 --- 2 files changed, 6 insertions(+), 11 deletions(-)
New commits: commit faa36a5310f432a245baa8e9f765e759ab1cba2d Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Aug 27 20:09:20 2020 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Aug 28 12:59:40 2020 +0200 mark OKButton and HelpButton as final Change-Id: Ifc17271a202a36cc2801fcb67057c294791033ad Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101499 Tested-by: Caolán McNamara <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/include/vcl/toolkit/button.hxx b/include/vcl/toolkit/button.hxx index 0c90976cbd70..49748cdc73d9 100644 --- a/include/vcl/toolkit/button.hxx +++ b/include/vcl/toolkit/button.hxx @@ -24,11 +24,11 @@ #include <vcl/button.hxx> -class VCL_DLLPUBLIC OKButton : public PushButton +class VCL_DLLPUBLIC OKButton final : public PushButton { -protected: - using PushButton::ImplInit; private: + using PushButton::ImplInit; + SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle ); OKButton (const OKButton &) = delete; @@ -62,11 +62,10 @@ public: explicit CloseButton(vcl::Window* pParent, WinBits nStyle = 0); }; -class VCL_DLLPUBLIC HelpButton : public PushButton +class VCL_DLLPUBLIC HelpButton final : public PushButton { -protected: - using PushButton::ImplInit; private: + using PushButton::ImplInit; SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle ); HelpButton( const HelpButton & ) = delete; @@ -169,10 +168,9 @@ public: class VCL_DLLPUBLIC ImageButton final : public PushButton { -protected: +private: using PushButton::ImplInitStyle; -private: SAL_DLLPRIVATE void ImplInitStyle(); ImageButton( const ImageButton & ) = delete; diff --git a/vcl/qa/cppunit/lifecycle.cxx b/vcl/qa/cppunit/lifecycle.cxx index 078fb3266623..6ab9d30625b1 100644 --- a/vcl/qa/cppunit/lifecycle.cxx +++ b/vcl/qa/cppunit/lifecycle.cxx @@ -296,9 +296,6 @@ void LifecycleTest::testLeakage() VclPtr<vcl::Window> xParent = aObjects.back()->getRef(); aObjects.push_back(LeakTestObject::Create<PushButton>(xParent)); - aObjects.push_back(LeakTestObject::Create<OKButton>(xParent)); - aObjects.push_back(LeakTestObject::Create<CancelButton>(xParent)); - aObjects.push_back(LeakTestObject::Create<HelpButton>(xParent)); aObjects.push_back(LeakTestObject::Create<CheckBox>(xParent)); aObjects.push_back(LeakTestObject::Create<Edit>(xParent)); aObjects.push_back(LeakTestObject::Create<ComboBox>(xParent)); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits