diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-12 15:51:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-13 12:56:39 +0200 |
commit | 0302c9b192c3b7ba10daabed61d6864c24c14070 (patch) | |
tree | 4c17a2ff761e0513620704bd3ecceff4107d17cc /xmloff/inc | |
parent | ecf987682881258774f4ec1644474beae3366abe (diff) |
loplugin:constfields in xmloff
Change-Id: I9623e6b483b28f5b50a2c76016bcc319b375a35a
Reviewed-on: https://gerrit.libreoffice.org/60394
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/inc')
-rw-r--r-- | xmloff/inc/MultiPropertySetHelper.hxx | 2 | ||||
-rw-r--r-- | xmloff/inc/StyleMap.hxx | 4 | ||||
-rw-r--r-- | xmloff/inc/XMLBackgroundImageContext.hxx | 2 | ||||
-rw-r--r-- | xmloff/inc/XMLBitmapRepeatOffsetPropertyHandler.hxx | 6 | ||||
-rw-r--r-- | xmloff/inc/XMLClipPropertyHandler.hxx | 2 | ||||
-rw-r--r-- | xmloff/inc/XMLRectangleMembersHandler.hxx | 2 | ||||
-rw-r--r-- | xmloff/inc/XMLTextHeaderFooterContext.hxx | 4 | ||||
-rw-r--r-- | xmloff/inc/animations.hxx | 2 | ||||
-rw-r--r-- | xmloff/inc/propimp0.hxx | 2 | ||||
-rw-r--r-- | xmloff/inc/txtfldi.hxx | 16 | ||||
-rw-r--r-- | xmloff/inc/txtvfldi.hxx | 16 |
11 files changed, 29 insertions, 29 deletions
diff --git a/xmloff/inc/MultiPropertySetHelper.hxx b/xmloff/inc/MultiPropertySetHelper.hxx index 8b77b8d0623e..0c7f6e9aa8ca 100644 --- a/xmloff/inc/MultiPropertySetHelper.hxx +++ b/xmloff/inc/MultiPropertySetHelper.hxx @@ -75,7 +75,7 @@ class MultiPropertySetHelper const css::uno::Any* pValues; /// an empty Any - css::uno::Any aEmptyAny; + css::uno::Any const aEmptyAny; public: diff --git a/xmloff/inc/StyleMap.hxx b/xmloff/inc/StyleMap.hxx index a3edc2e35832..8fb76e61104d 100644 --- a/xmloff/inc/StyleMap.hxx +++ b/xmloff/inc/StyleMap.hxx @@ -26,8 +26,8 @@ struct StyleNameKey_Impl { - sal_uInt16 m_nFamily; - OUString m_aName; + sal_uInt16 const m_nFamily; + OUString const m_aName; StyleNameKey_Impl( sal_uInt16 nFamily, const OUString& rName ) : diff --git a/xmloff/inc/XMLBackgroundImageContext.hxx b/xmloff/inc/XMLBackgroundImageContext.hxx index 8080f3f3b458..6fbe5604869c 100644 --- a/xmloff/inc/XMLBackgroundImageContext.hxx +++ b/xmloff/inc/XMLBackgroundImageContext.hxx @@ -30,7 +30,7 @@ namespace com { namespace sun { namespace star { class XMLBackgroundImageContext : public XMLElementPropertyContext { XMLPropertyState aPosProp; - sal_Int32 m_nBitmapModeIdx; + sal_Int32 const m_nBitmapModeIdx; XMLPropertyState aFilterProp; XMLPropertyState aTransparencyProp; diff --git a/xmloff/inc/XMLBitmapRepeatOffsetPropertyHandler.hxx b/xmloff/inc/XMLBitmapRepeatOffsetPropertyHandler.hxx index c7739a5c7206..70c6bf17f7fc 100644 --- a/xmloff/inc/XMLBitmapRepeatOffsetPropertyHandler.hxx +++ b/xmloff/inc/XMLBitmapRepeatOffsetPropertyHandler.hxx @@ -29,9 +29,9 @@ template<typename EnumT> struct SvXMLEnumMapEntry; */ class XMLBitmapRepeatOffsetPropertyHandler: public XMLPropertyHandler { - bool mbX; - OUString msVertical; - OUString msHorizontal; + bool const mbX; + OUString const msVertical; + OUString const msHorizontal; public: XMLBitmapRepeatOffsetPropertyHandler( bool bX ); diff --git a/xmloff/inc/XMLClipPropertyHandler.hxx b/xmloff/inc/XMLClipPropertyHandler.hxx index 55cd77615705..f5b830528c37 100644 --- a/xmloff/inc/XMLClipPropertyHandler.hxx +++ b/xmloff/inc/XMLClipPropertyHandler.hxx @@ -27,7 +27,7 @@ */ class XMLClipPropertyHandler : public XMLPropertyHandler { - bool m_bODF11; + bool const m_bODF11; public: XMLClipPropertyHandler( bool bODF11 ); virtual ~XMLClipPropertyHandler() override; diff --git a/xmloff/inc/XMLRectangleMembersHandler.hxx b/xmloff/inc/XMLRectangleMembersHandler.hxx index db6209e1a984..0ab06d579e65 100644 --- a/xmloff/inc/XMLRectangleMembersHandler.hxx +++ b/xmloff/inc/XMLRectangleMembersHandler.hxx @@ -31,7 +31,7 @@ template<typename EnumT> struct SvXMLEnumMapEntry; class XMLRectangleMembersHdl: public XMLPropertyHandler { private: - sal_Int32 mnType; + sal_Int32 const mnType; public: XMLRectangleMembersHdl( sal_Int32 nType ); diff --git a/xmloff/inc/XMLTextHeaderFooterContext.hxx b/xmloff/inc/XMLTextHeaderFooterContext.hxx index 385190dd5674..be1bb17f1641 100644 --- a/xmloff/inc/XMLTextHeaderFooterContext.hxx +++ b/xmloff/inc/XMLTextHeaderFooterContext.hxx @@ -39,8 +39,8 @@ class XMLTextHeaderFooterContext: public SvXMLImportContext const OUString sTextLeft; bool bInsertContent : 1; - bool bLeft : 1; - bool bFirst : 1; + bool const bLeft : 1; + bool const bFirst : 1; public: diff --git a/xmloff/inc/animations.hxx b/xmloff/inc/animations.hxx index e00e6948aed1..638c76561091 100644 --- a/xmloff/inc/animations.hxx +++ b/xmloff/inc/animations.hxx @@ -45,7 +45,7 @@ extern const SvXMLEnumMapEntry<sal_Int16> aAnimations_EnumMap_Command[]; struct ImplAttributeNameConversion { - token::XMLTokenEnum meXMLToken; + token::XMLTokenEnum const meXMLToken; const sal_Char* mpAPIName; }; diff --git a/xmloff/inc/propimp0.hxx b/xmloff/inc/propimp0.hxx index 101e36bf4d10..eccc3b60e13e 100644 --- a/xmloff/inc/propimp0.hxx +++ b/xmloff/inc/propimp0.hxx @@ -36,7 +36,7 @@ class SvXMLImport; class XMLOpacityPropertyHdl : public XMLPropertyHandler { private: - SvXMLImport* mpImport; + SvXMLImport* const mpImport; public: explicit XMLOpacityPropertyHdl( SvXMLImport* pImport ); virtual ~XMLOpacityPropertyHdl() override; diff --git a/xmloff/inc/txtfldi.hxx b/xmloff/inc/txtfldi.hxx index 42aadc741520..2448e1b649b3 100644 --- a/xmloff/inc/txtfldi.hxx +++ b/xmloff/inc/txtfldi.hxx @@ -186,7 +186,7 @@ class XMLSenderFieldImportContext : public XMLTextFieldImportContext protected: // variables for access in subclass bool bFixed; - sal_uInt16 nElementToken; /// token for this element field + sal_uInt16 const nElementToken; /// token for this element field public: @@ -393,7 +393,7 @@ class XMLDatabaseFieldImportContext : public XMLTextFieldImportContext bool bDisplay; bool bDisplayOK; - bool bUseDisplay; + bool const bUseDisplay; protected: bool bDatabaseOK; @@ -533,8 +533,8 @@ class XMLSimpleDocInfoImportContext : public XMLTextFieldImportContext protected: bool bFixed; - bool bHasAuthor; - bool bHasContent; + bool const bHasAuthor; + bool const bHasContent; public: @@ -912,7 +912,7 @@ class XMLReferenceFieldImportContext : public XMLTextFieldImportContext { OUString sName; OUString sLanguage; - sal_uInt16 nElementToken; + sal_uInt16 const nElementToken; sal_Int16 nSource; sal_Int16 nType; @@ -944,7 +944,7 @@ protected: /** import dde field declaration container (<text:dde-connection-decls>) */ class XMLDdeFieldDeclsImportContext : public SvXMLImportContext { - SvXMLTokenMap aTokenMap; + SvXMLTokenMap const aTokenMap; public: @@ -979,7 +979,7 @@ public: class XMLDdeFieldImportContext : public XMLTextFieldImportContext { OUString sName; - OUString sPropertyContent; + OUString const sPropertyContent; public: @@ -1107,7 +1107,7 @@ class XMLAnnotationImportContext : public XMLTextFieldImportContext css::uno::Reference < css::text::XTextCursor > mxCursor; css::uno::Reference < css::text::XTextCursor > mxOldCursor; - sal_uInt16 m_nToken; + sal_uInt16 const m_nToken; public: diff --git a/xmloff/inc/txtvfldi.hxx b/xmloff/inc/txtvfldi.hxx index 3ec143de2425..2ca6b213a23a 100644 --- a/xmloff/inc/txtvfldi.hxx +++ b/xmloff/inc/txtvfldi.hxx @@ -122,14 +122,14 @@ private: bool bHintOK; /// sHint was set bool bDisplayOK; /// sDisplayFormula/-None were set - bool bSetFormula; /// set Formula property - bool bSetFormulaDefault; /// use content as default for formula - bool bSetDescription; /// set sDescription with Hint-property - bool bSetHelp; - bool bSetHint; - bool bSetVisible; /// set IsVisible + bool const bSetFormula; /// set Formula property + bool const bSetFormulaDefault; /// use content as default for formula + bool const bSetDescription; /// set sDescription with Hint-property + bool const bSetHelp; + bool const bSetHint; + bool const bSetVisible; /// set IsVisible bool bSetDisplayFormula; /// set DisplayFormula (sub type???) - bool bSetPresentation; /// set presentation frm elem. content? + bool const bSetPresentation; /// set presentation frm elem. content? public: @@ -378,7 +378,7 @@ protected: */ class XMLVariableDeclsImportContext : public SvXMLImportContext { - enum VarType eVarDeclsContextType; + enum VarType const eVarDeclsContextType; XMLTextImportHelper& rImportHelper; public: |