diff options
author | Noel Grandin <noel@peralex.com> | 2015-01-08 14:09:13 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-04-09 20:03:21 +0100 |
commit | 1798a4433280a6cae38fe535fb043a8e27d7f95a (patch) | |
tree | b08acb0329cd59ffcf18466b4efe30406ef421a0 /include | |
parent | a6acccc6d2e6a49691d2612af9898e4018c68861 (diff) |
compilerplugin: check that necessary Window subclasses have a dispose method
i.e. the ones that declare any VclPtr fields
Change-Id: I7adfc3b3b190a2ede60bfccd08f85a269fae33ca
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/combobox.hxx | 1 | ||||
-rw-r--r-- | include/vcl/dialog.hxx | 1 | ||||
-rw-r--r-- | include/vcl/layout.hxx | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/include/vcl/combobox.hxx b/include/vcl/combobox.hxx index 8842477a6c40..86e6af49d2bb 100644 --- a/include/vcl/combobox.hxx +++ b/include/vcl/combobox.hxx @@ -91,6 +91,7 @@ protected: bool IsDropDownBox() const { return mpFloatWin ? true : false; } virtual void FillLayoutData() const SAL_OVERRIDE; + virtual void dispose() SAL_OVERRIDE; public: explicit ComboBox( vcl::Window* pParent, WinBits nStyle = 0 ); explicit ComboBox( vcl::Window* pParent, const ResId& ); diff --git a/include/vcl/dialog.hxx b/include/vcl/dialog.hxx index bd418e8de2d1..ab498f1183b3 100644 --- a/include/vcl/dialog.hxx +++ b/include/vcl/dialog.hxx @@ -62,6 +62,7 @@ private: protected: using Window::ImplInit; SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle ); + virtual void dispose() SAL_OVERRIDE; public: SAL_DLLPRIVATE bool IsInClose() const { return mbInClose; } diff --git a/include/vcl/layout.hxx b/include/vcl/layout.hxx index d11da2cc05d0..fde760953db0 100644 --- a/include/vcl/layout.hxx +++ b/include/vcl/layout.hxx @@ -620,6 +620,8 @@ private: }; VclPtr<EventBoxHelper> m_aEventBoxHelper; +protected: + virtual void dispose() SAL_OVERRIDE; public: VclEventBox(vcl::Window* pParent) : VclBin(pParent) |