diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-13 11:13:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-13 15:18:33 +0200 |
commit | e7c6c05ae5a62e1705ffda97c5405eecd1f62a1e (patch) | |
tree | 5d812b3516f6575e2b4bda164c35e6dfb8dfdefc /writerfilter/source/ooxml | |
parent | 79c4c5dfc1df4b8b80f7d3a6343aa6af9458819d (diff) |
loplugin:constfields in writerfilter
Change-Id: Ibe380e1fb35d9defc478d459a988f9f6df13bf35
Reviewed-on: https://gerrit.libreoffice.org/60427
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'writerfilter/source/ooxml')
-rw-r--r-- | writerfilter/source/ooxml/OOXMLDocumentImpl.hxx | 6 | ||||
-rw-r--r-- | writerfilter/source/ooxml/OOXMLFactory.hxx | 6 | ||||
-rw-r--r-- | writerfilter/source/ooxml/OOXMLFastDocumentHandler.hxx | 6 | ||||
-rw-r--r-- | writerfilter/source/ooxml/OOXMLPropertySet.hxx | 20 | ||||
-rw-r--r-- | writerfilter/source/ooxml/OOXMLStreamImpl.hxx | 4 |
5 files changed, 21 insertions, 21 deletions
diff --git a/writerfilter/source/ooxml/OOXMLDocumentImpl.hxx b/writerfilter/source/ooxml/OOXMLDocumentImpl.hxx index 968b16dea3e9..1ad317a204d3 100644 --- a/writerfilter/source/ooxml/OOXMLDocumentImpl.hxx +++ b/writerfilter/source/ooxml/OOXMLDocumentImpl.hxx @@ -53,7 +53,7 @@ class OOXMLDocumentImpl : public OOXMLDocument css::uno::Sequence < css::beans::PropertyValue > mxEmbeddingsList; std::vector<css::beans::PropertyValue> aEmbeddings; bool mbIsSubstream; - bool mbSkipImages; + bool const mbSkipImages; /// How many paragraphs equal to 1 percent? sal_Int32 mnPercentSize; /// Position progress when it was last updated, possibly not after every paragraph in case of large documents. @@ -63,8 +63,8 @@ class OOXMLDocumentImpl : public OOXMLDocument /// End position, i.e. the estimated number of paragraphs. sal_Int32 mnProgressEndPos; /// DocumentBaseURL - OUString m_rBaseURL; - css::uno::Sequence<css::beans::PropertyValue> maMediaDescriptor; + OUString const m_rBaseURL; + css::uno::Sequence<css::beans::PropertyValue> const maMediaDescriptor; private: void resolveFastSubStream(Stream & rStream, diff --git a/writerfilter/source/ooxml/OOXMLFactory.hxx b/writerfilter/source/ooxml/OOXMLFactory.hxx index f4513ea6bdf3..f1432869f4e2 100644 --- a/writerfilter/source/ooxml/OOXMLFactory.hxx +++ b/writerfilter/source/ooxml/OOXMLFactory.hxx @@ -59,9 +59,9 @@ enum class ResourceType { struct AttributeInfo { - Token_t m_nToken; - ResourceType m_nResource; - Id m_nRef; + Token_t const m_nToken; + ResourceType const m_nResource; + Id const m_nRef; }; class OOXMLFactory_ns : public virtual SvRefBase { diff --git a/writerfilter/source/ooxml/OOXMLFastDocumentHandler.hxx b/writerfilter/source/ooxml/OOXMLFastDocumentHandler.hxx index 1251203fb792..0757cb90ea19 100644 --- a/writerfilter/source/ooxml/OOXMLFastDocumentHandler.hxx +++ b/writerfilter/source/ooxml/OOXMLFastDocumentHandler.hxx @@ -82,9 +82,9 @@ private: css::uno::Reference< css::uno::XComponentContext > m_xContext; - Stream * mpStream; - OOXMLDocumentImpl* mpDocument; - sal_Int32 mnXNoteId; + Stream * const mpStream; + OOXMLDocumentImpl* const mpDocument; + sal_Int32 const mnXNoteId; mutable rtl::Reference<OOXMLFastContextHandler> mxContextHandler; rtl::Reference<OOXMLFastContextHandler> const & getContextHandler() const; }; diff --git a/writerfilter/source/ooxml/OOXMLPropertySet.hxx b/writerfilter/source/ooxml/OOXMLPropertySet.hxx index 5d744015eb3f..ecaeadb21014 100644 --- a/writerfilter/source/ooxml/OOXMLPropertySet.hxx +++ b/writerfilter/source/ooxml/OOXMLPropertySet.hxx @@ -58,9 +58,9 @@ public: typedef tools::SvRef<OOXMLProperty> Pointer_t; enum Type_t { SPRM, ATTRIBUTE }; private: - Id mId; + Id const mId; mutable OOXMLValue::Pointer_t mpValue; - Type_t meType; + Type_t const meType; public: OOXMLProperty(Id id, const OOXMLValue::Pointer_t& pValue, Type_t eType); @@ -79,7 +79,7 @@ public: class OOXMLBinaryValue : public OOXMLValue { - mutable OOXMLBinaryObjectReference::Pointer_t mpBinaryObj; + OOXMLBinaryObjectReference::Pointer_t const mpBinaryObj; public: explicit OOXMLBinaryValue(OOXMLBinaryObjectReference::Pointer_t const & pBinaryObj); virtual ~OOXMLBinaryValue() override; @@ -93,7 +93,7 @@ public: class OOXMLBooleanValue : public OOXMLValue { - bool mbValue; + bool const mbValue; explicit OOXMLBooleanValue(bool bValue); public: static OOXMLValue::Pointer_t const & Create (bool bValue); @@ -116,7 +116,7 @@ public: class OOXMLStringValue : public OOXMLValue { - OUString mStr; + OUString const mStr; public: explicit OOXMLStringValue(const OUString & rStr); virtual ~OOXMLStringValue() override; @@ -205,7 +205,7 @@ private: class OOXMLPropertySetValue : public OOXMLValue { - OOXMLPropertySet::Pointer_t mpPropertySet; + OOXMLPropertySet::Pointer_t const mpPropertySet; public: explicit OOXMLPropertySetValue(const OOXMLPropertySet::Pointer_t& pPropertySet); virtual ~OOXMLPropertySetValue() override; @@ -224,7 +224,7 @@ public: class OOXMLIntegerValue : public OOXMLValue { - sal_Int32 mnValue; + sal_Int32 const mnValue; explicit OOXMLIntegerValue(sal_Int32 nValue); public: static OOXMLValue::Pointer_t Create (sal_Int32 nValue); @@ -353,7 +353,7 @@ public: class OOXMLPropertySetEntryToString : public Properties { - Id mnId; + Id const mnId; OUString mStr; public: @@ -368,7 +368,7 @@ public: class OOXMLPropertySetEntryToInteger : public Properties { - Id mnId; + Id const mnId; int mnValue; public: explicit OOXMLPropertySetEntryToInteger(Id nId); @@ -382,7 +382,7 @@ public: class OOXMLPropertySetEntryToBool : public Properties { - Id mnId; + Id const mnId; bool mValue; public: explicit OOXMLPropertySetEntryToBool(Id nId); diff --git a/writerfilter/source/ooxml/OOXMLStreamImpl.hxx b/writerfilter/source/ooxml/OOXMLStreamImpl.hxx index b7d5b4aaa7ed..9401d82c2a1e 100644 --- a/writerfilter/source/ooxml/OOXMLStreamImpl.hxx +++ b/writerfilter/source/ooxml/OOXMLStreamImpl.hxx @@ -43,9 +43,9 @@ class OOXMLStreamImpl : public OOXMLStream css::uno::Reference<css::xml::sax::XFastParser> mxFastParser; css::uno::Reference<css::xml::sax::XFastTokenHandler> mxFastTokenHandler; - StreamType_t mnStreamType; + StreamType_t const mnStreamType; - OUString msId; + OUString const msId; OUString msPath; OUString msTarget; |