summaryrefslogtreecommitdiff
path: root/vcl/source/edit
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/source/edit
parentb66d87086804460c1986df1b832fd6b2ea075a90 (diff)
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/source/edit')
-rw-r--r--vcl/source/edit/textdat2.hxx2
-rw-r--r--vcl/source/edit/textund2.hxx8
-rw-r--r--vcl/source/edit/textundo.hxx2
-rw-r--r--vcl/source/edit/textview.cxx2
-rw-r--r--vcl/source/edit/vclmedit.cxx4
5 files changed, 9 insertions, 9 deletions
diff --git a/vcl/source/edit/textdat2.hxx b/vcl/source/edit/textdat2.hxx
index ccff6a6ca52a..05375c091c42 100644
--- a/vcl/source/edit/textdat2.hxx
+++ b/vcl/source/edit/textdat2.hxx
@@ -273,7 +273,7 @@ private:
public:
IdleFormatter();
- ~IdleFormatter();
+ virtual ~IdleFormatter();
void DoIdleFormat( TextView* pV, sal_uInt16 nMaxRestarts );
void ForceTimeout();
diff --git a/vcl/source/edit/textund2.hxx b/vcl/source/edit/textund2.hxx
index 2980641c28bf..8a5a917dd3a4 100644
--- a/vcl/source/edit/textund2.hxx
+++ b/vcl/source/edit/textund2.hxx
@@ -33,7 +33,7 @@ private:
public:
TYPEINFO_OVERRIDE();
TextUndoDelPara( TextEngine* pTextEngine, TextNode* pNode, sal_uLong nPara );
- ~TextUndoDelPara();
+ virtual ~TextUndoDelPara();
virtual void Undo() SAL_OVERRIDE;
virtual void Redo() SAL_OVERRIDE;
@@ -51,7 +51,7 @@ private:
public:
TYPEINFO_OVERRIDE();
TextUndoConnectParas( TextEngine* pTextEngine, sal_uLong nPara, sal_uInt16 nSepPos );
- ~TextUndoConnectParas();
+ virtual ~TextUndoConnectParas();
virtual void Undo() SAL_OVERRIDE;
virtual void Redo() SAL_OVERRIDE;
@@ -69,7 +69,7 @@ private:
public:
TYPEINFO_OVERRIDE();
TextUndoSplitPara( TextEngine* pTextEngine, sal_uLong nPara, sal_uInt16 nSepPos );
- ~TextUndoSplitPara();
+ virtual ~TextUndoSplitPara();
virtual void Undo() SAL_OVERRIDE;
virtual void Redo() SAL_OVERRIDE;
@@ -122,7 +122,7 @@ private:
public:
TYPEINFO_OVERRIDE();
TextUndoSetAttribs( TextEngine* pTextEngine, const TextSelection& rESel );
- ~TextUndoSetAttribs();
+ virtual ~TextUndoSetAttribs();
virtual void Undo() SAL_OVERRIDE;
virtual void Redo() SAL_OVERRIDE;
diff --git a/vcl/source/edit/textundo.hxx b/vcl/source/edit/textundo.hxx
index f5eacc78addf..ff24a0be872a 100644
--- a/vcl/source/edit/textundo.hxx
+++ b/vcl/source/edit/textundo.hxx
@@ -41,7 +41,7 @@ protected:
public:
TextUndoManager( TextEngine* pTextEngine );
- ~TextUndoManager();
+ virtual ~TextUndoManager();
using SfxUndoManager::Undo;
virtual bool Undo() SAL_OVERRIDE;
diff --git a/vcl/source/edit/textview.cxx b/vcl/source/edit/textview.cxx
index fd3dbfbdac2f..6c4f039397ab 100644
--- a/vcl/source/edit/textview.cxx
+++ b/vcl/source/edit/textview.cxx
@@ -69,7 +69,7 @@ private:
public:
TETextDataObject( const OUString& rText );
- ~TETextDataObject();
+ virtual ~TETextDataObject();
OUString& GetText() { return maText; }
SvMemoryStream& GetHTMLStream() { return maHTMLStream; }
diff --git a/vcl/source/edit/vclmedit.cxx b/vcl/source/edit/vclmedit.cxx
index 6d5a91164ee8..117082c1b6fd 100644
--- a/vcl/source/edit/vclmedit.cxx
+++ b/vcl/source/edit/vclmedit.cxx
@@ -50,7 +50,7 @@ private:
public:
TextWindow( Window* pParent );
- ~TextWindow();
+ virtual ~TextWindow();
ExtTextEngine* GetTextEngine() const { return mpExtTextEngine; }
ExtTextView* GetTextView() const { return mpExtTextView; }
@@ -104,7 +104,7 @@ protected:
public:
ImpVclMEdit( VclMultiLineEdit* pVclMultiLineEdit, WinBits nWinStyle );
- ~ImpVclMEdit();
+ virtual ~ImpVclMEdit();
void SetModified( bool bMod );
bool IsModified() const;