diff options
Diffstat (limited to 'sot')
-rw-r--r-- | sot/inc/sysformats.hxx | 8 | ||||
-rw-r--r-- | sot/source/base/formats.cxx | 2 | ||||
-rw-r--r-- | sot/source/sdstor/stgcache.hxx | 2 | ||||
-rw-r--r-- | sot/source/sdstor/ucbstorage.cxx | 10 |
4 files changed, 11 insertions, 11 deletions
diff --git a/sot/inc/sysformats.hxx b/sot/inc/sysformats.hxx index c04f8bb8be95..38276e7e4f9c 100644 --- a/sot/inc/sysformats.hxx +++ b/sot/inc/sysformats.hxx @@ -28,10 +28,10 @@ struct SotAction_Impl { - SotClipboardFormatId nFormatId; // Clipboard Id - sal_uInt16 nAction; // Action Id - SotExchangeActionFlags nFlags; // Action Id - sal_uInt8 nContextCheckId; // additional check of content in clipboard + SotClipboardFormatId const nFormatId; // Clipboard Id + sal_uInt16 const nAction; // Action Id + SotExchangeActionFlags const nFlags; // Action Id + sal_uInt8 const nContextCheckId; // additional check of content in clipboard constexpr SotAction_Impl(SotClipboardFormatId _nFormatId, sal_uInt16 _nAction, SotExchangeActionFlags _nFlags, sal_uInt8 _nContextCheckId) : nFormatId(_nFormatId), nAction(_nAction), nFlags(_nFlags), nContextCheckId(_nContextCheckId) {} diff --git a/sot/source/base/formats.cxx b/sot/source/base/formats.cxx index 243bc911ddaa..47fba4010095 100644 --- a/sot/source/base/formats.cxx +++ b/sot/source/base/formats.cxx @@ -50,7 +50,7 @@ using namespace ::com::sun::star::datatransfer; struct SotDestinationEntry_Impl { - SotExchangeDest nDestination; + SotExchangeDest const nDestination; const SotAction_Impl* aDefaultActions; const SotAction_Impl* aMoveActions; const SotAction_Impl* aCopyActions; diff --git a/sot/source/sdstor/stgcache.hxx b/sot/source/sdstor/stgcache.hxx index f0bd2e1d25a3..b7cd8e4d25f0 100644 --- a/sot/source/sdstor/stgcache.hxx +++ b/sot/source/sdstor/stgcache.hxx @@ -100,7 +100,7 @@ class StgPage : public salhelper::SimpleReferenceObject const sal_Int32 mnPage; // page index std::unique_ptr<sal_uInt8[]> mpData; // nSize bytes - short mnSize; // size of this page + short const mnSize; // size of this page StgPage( short nData, sal_Int32 nPage ); virtual ~StgPage() override; public: diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx index 23eeca1d531c..c5c8c13fb088 100644 --- a/sot/source/sdstor/ucbstorage.cxx +++ b/sot/source/sdstor/ucbstorage.cxx @@ -405,7 +405,7 @@ public: OUString m_aURL; // the full path name to create the content OUString m_aContentType; OUString m_aOriginalContentType; - OString m_aKey; + OString const m_aKey; ::ucbhelper::Content* m_pContent; // the content that provides the data Reference<XInputStream> m_rSource; // the stream covering the original data of the content std::unique_ptr<SvStream> m_pStream; // the stream worked on; for readonly streams it is the original stream of the content @@ -416,7 +416,7 @@ public: bool m_bSourceRead; // Source still contains useful information bool m_bModified; // only modified streams will be sent to the original content bool m_bCommited; // sending the streams is coordinated by the root storage of the package - bool m_bDirect; // the storage and its streams are opened in direct mode; for UCBStorages + bool const m_bDirect; // the storage and its streams are opened in direct mode; for UCBStorages // this means that the root storage does an autocommit when its external // reference is destroyed bool m_bIsOLEStorage;// an OLEStorage on a UCBStorageStream makes this an Autocommit-stream @@ -466,7 +466,7 @@ public: ErrCode m_nError; StreamMode m_nMode; // open mode ( read/write/trunc/nocreate/sharing ) bool m_bCommited; // sending the streams is coordinated by the root storage of the package - bool m_bDirect; // the storage and its streams are opened in direct mode; for UCBStorages + bool const m_bDirect; // the storage and its streams are opened in direct mode; for UCBStorages // this means that the root storage does an autocommit when its external // reference is destroyed bool m_bIsRoot; // marks this storage as root storages that manages all commits and reverts @@ -478,7 +478,7 @@ public: UCBStorageElementList_Impl m_aChildrenList; - bool m_bRepairPackage; + bool const m_bRepairPackage; Reference< XProgressHandler > m_xProgressHandler; UCBStorage_Impl( const ::ucbhelper::Content&, const OUString&, StreamMode, UCBStorage*, bool, @@ -529,7 +529,7 @@ struct UCBStorageElement_Impl { OUString m_aName; // the actual URL relative to the root "folder" OUString m_aOriginalName;// the original name in the content - sal_uLong m_nSize; + sal_uLong const m_nSize; bool m_bIsFolder; // Only true when it is a UCBStorage ! bool m_bIsStorage; // Also true when it is an OLEStorage ! bool m_bIsRemoved; // element will be removed on commit |