mark OKButton and HelpButton as final
Change-Id: Ifc17271a202a36cc2801fcb67057c294791033ad Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101499 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -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;
|
||||
|
@@ -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));
|
||||
|
Reference in New Issue
Block a user