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 /include/sot/stg.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 'include/sot/stg.hxx')
-rw-r--r-- | include/sot/stg.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/sot/stg.hxx b/include/sot/stg.hxx index 2805d2acdda2..b42ed4c7f590 100644 --- a/include/sot/stg.hxx +++ b/include/sot/stg.hxx @@ -154,7 +154,7 @@ class StorageStream : public BaseStorageStream, public OLEStorageBase //friend class Storage; sal_uLong nPos; // current position protected: - ~StorageStream(); + virtual ~StorageStream(); public: TYPEINFO_OVERRIDE(); StorageStream( StgIo*, StgDirEntry*, StreamMode ); @@ -183,7 +183,7 @@ class SOT_DLLPUBLIC Storage : public BaseStorage, public OLEStorageBase void Init( bool bCreate ); Storage( StgIo*, StgDirEntry*, StreamMode ); protected: - ~Storage(); + virtual ~Storage(); public: TYPEINFO_OVERRIDE(); Storage( const OUString &, StreamMode = STREAM_STD_READWRITE, bool bDirect = true ); @@ -247,7 +247,7 @@ friend class UCBStorage; UCBStorageStream_Impl* pImp; protected: - ~UCBStorageStream(); + virtual ~UCBStorageStream(); public: TYPEINFO_OVERRIDE(); UCBStorageStream( const OUString& rName, StreamMode nMode, bool bDirect, const OString* pKey, bool bRepair, ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XProgressHandler > xProgress ); @@ -284,7 +284,7 @@ class SOT_DLLPUBLIC UCBStorage : public BaseStorage UCBStorage_Impl* pImp; protected: - ~UCBStorage(); + virtual ~UCBStorage(); public: static bool IsStorageFile( SvStream* ); static bool IsDiskSpannedFile( SvStream* ); |