From 362d4f0cd4e50111edfae9d30c90602c37ed65a2 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 1 Apr 2014 19:18:35 +0200 Subject: 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 --- vcl/inc/ilstbox.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vcl/inc/ilstbox.hxx') 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; -- cgit