summaryrefslogtreecommitdiffstats
path: root/vcl/inc/ilstbox.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-04-01 19:18:35 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-04-01 19:22:54 +0200
commit362d4f0cd4e50111edfae9d30c90602c37ed65a2 (patch)
tree0b432c049d580dcac6130bca9fb028bab8af8fa8 /vcl/inc/ilstbox.hxx
parentsvx: fix SID_OFFER_IMPORT and SID_ATTR_CHAR_GRABBAG having the same SID (diff)
downloadcore-362d4f0cd4e50111edfae9d30c90602c37ed65a2.tar.gz
core-362d4f0cd4e50111edfae9d30c90602c37ed65a2.zip
Explicitly mark overriding destructors as "virtual"
It appears that the C++ standard allows overriding destructors to be marked "override," but at least some MSVC versions complain about it, so at least make sure such destructors are explicitly marked "virtual." Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
Diffstat (limited to 'vcl/inc/ilstbox.hxx')
-rw-r--r--vcl/inc/ilstbox.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/inc/ilstbox.hxx b/vcl/inc/ilstbox.hxx
index d0c3f709a02d..6163da02b023 100644
--- a/vcl/inc/ilstbox.hxx
+++ b/vcl/inc/ilstbox.hxx
@@ -268,7 +268,7 @@ public:
virtual void FillLayoutData() const SAL_OVERRIDE;
ImplListBoxWindow( Window* pParent, WinBits nWinStyle );
- ~ImplListBoxWindow();
+ virtual ~ImplListBoxWindow();
ImplEntryList* GetEntryList() const { return mpEntryList; }
@@ -413,7 +413,7 @@ protected:
public:
ImplListBox( Window* pParent, WinBits nWinStyle );
- ~ImplListBox();
+ virtual ~ImplListBox();
const ImplEntryList* GetEntryList() const { return maLBWindow.GetEntryList(); }
ImplListBoxWindow* GetMainWindow() { return &maLBWindow; }
@@ -571,7 +571,7 @@ protected:
public:
ImplWin( Window* pParent, WinBits nWinStyle = 0 );
- ~ImplWin() {};
+ virtual ~ImplWin() {};
virtual void MouseButtonDown( const MouseEvent& rMEvt ) SAL_OVERRIDE;
virtual void Paint( const Rectangle& rRect ) SAL_OVERRIDE;
@@ -617,7 +617,7 @@ private:
public:
ImplBtn( Window* pParent, WinBits nWinStyle = 0 );
- ~ImplBtn() {};
+ virtual ~ImplBtn() {};
virtual void MouseButtonDown( const MouseEvent& rMEvt ) SAL_OVERRIDE;