diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-04-01 19:18:35 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-04-01 19:22:54 +0200 |
commit | 362d4f0cd4e50111edfae9d30c90602c37ed65a2 (patch) | |
tree | 0b432c049d580dcac6130bca9fb028bab8af8fa8 /lotuswordpro/source/filter/lwpholder.hxx | |
parent | b66d87086804460c1986df1b832fd6b2ea075a90 (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 'lotuswordpro/source/filter/lwpholder.hxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpholder.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/lwpholder.hxx b/lotuswordpro/source/filter/lwpholder.hxx index 714f1b75c2e8..46f10b166ffe 100644 --- a/lotuswordpro/source/filter/lwpholder.hxx +++ b/lotuswordpro/source/filter/lwpholder.hxx @@ -75,7 +75,7 @@ class LwpDLVListHeadHolder : public LwpObject { public: LwpDLVListHeadHolder(LwpObjectHeader& objHdr, LwpSvStream* pStrm); - ~LwpDLVListHeadHolder(){} + virtual ~LwpDLVListHeadHolder(){} void Read() SAL_OVERRIDE; LwpObjectID* GetHeadID() { return &m_DLVHead;} private: @@ -89,7 +89,7 @@ class LwpDLVListHeadTailHolder : public LwpObject { public: LwpDLVListHeadTailHolder(LwpObjectHeader& objHdr, LwpSvStream* pStrm); - ~LwpDLVListHeadTailHolder(){} + virtual ~LwpDLVListHeadTailHolder(){} void Read() SAL_OVERRIDE; LwpObjectID* GetHead(){ return m_HeadTail.GetHead();} LwpObjectID* GetTail(){ return m_HeadTail.GetTail();} @@ -104,7 +104,7 @@ class LwpObjectHolder : public LwpDLVList { public: LwpObjectHolder(LwpObjectHeader& objHdr, LwpSvStream* pStrm); - ~LwpObjectHolder(){} + virtual ~LwpObjectHolder(){} void Read() SAL_OVERRIDE; LwpObjectID* GetObject(){return &m_Object;} protected: @@ -119,7 +119,7 @@ class LwpListList : public LwpObjectHolder { public: LwpListList(LwpObjectHeader& objHdr, LwpSvStream* pStrm); - ~LwpListList(){} + virtual ~LwpListList(){} void Read() SAL_OVERRIDE; LwpObjectID* GetHead(){ return m_HeadTail.GetHead();} LwpObjectID* GetTail(){ return m_HeadTail.GetTail();} |