diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-09-17 23:39:46 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-10-27 13:59:08 +0100 |
commit | f8dac0391c4aa6d4d378919326aacd935d7bd462 (patch) | |
tree | 2562f993a51f1da82143794161d04602e93eca05 /sot | |
parent | ed931ff93d6156001fd90da6a58a757f8b006bfe (diff) |
Use mutable instead of const_cast'ing this
Change-Id: I790cd140166bf0041abebbe0c4d9c15e931628f1
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/stg.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sot/source/sdstor/stg.cxx b/sot/source/sdstor/stg.cxx index 69ecc37e6545..5156525fbad9 100644 --- a/sot/source/sdstor/stg.cxx +++ b/sot/source/sdstor/stg.cxx @@ -65,19 +65,19 @@ StorageBase::~StorageBase() sal_uLong StorageBase::GetError() const { sal_uLong n = m_nError; - const_cast<StorageBase*>(this)->m_nError = SVSTREAM_OK; + m_nError = SVSTREAM_OK; return n; } void StorageBase::SetError( sal_uLong n ) const { if( !m_nError ) - const_cast<StorageBase*>(this)->m_nError = n; + m_nError = n; } void StorageBase::ResetError() const { - const_cast<StorageBase*>(this)->m_nError = SVSTREAM_OK; + m_nError = SVSTREAM_OK; } OLEStorageBase::OLEStorageBase( StgIo* p, StgDirEntry* pe, StreamMode& nMode ) |