diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-23 17:06:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-24 09:34:17 +0200 |
commit | 29a8e51aea4e6956a388deaa1104fb1d81476ad3 (patch) | |
tree | 67f5c1a253e8979829d00f4201e44c0c6e96bfd7 /xmloff/source/xforms | |
parent | 37ce56416d67ecd6a8d1bfa762c45ec04a00e51b (diff) |
loplugin:unusedfields,can-be-const in xmloff(1)
(*) When passing a part of a global static data to XMLPropertiesOOoTContext_Impl,
just store a reference to it instead of copying
(*) Simplify the OOo2OasisTransformer constructor and call sites to make the const-ness work
Change-Id: I012d638cfd9266ed3514164e84b381d0d577f821
Reviewed-on: https://gerrit.libreoffice.org/57853
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/xforms')
-rw-r--r-- | xmloff/source/xforms/SchemaRestrictionContext.hxx | 2 | ||||
-rw-r--r-- | xmloff/source/xforms/xformsexport.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/xforms/SchemaRestrictionContext.hxx b/xmloff/source/xforms/SchemaRestrictionContext.hxx index 17e2af255123..29a36247a335 100644 --- a/xmloff/source/xforms/SchemaRestrictionContext.hxx +++ b/xmloff/source/xforms/SchemaRestrictionContext.hxx @@ -37,7 +37,7 @@ class SchemaRestrictionContext : public TokenContext { css::uno::Reference<css::xforms::XDataTypeRepository> mxRepository; css::uno::Reference<css::beans::XPropertySet> mxDataType; - OUString msTypeName; + OUString const msTypeName; OUString msBaseName; public: diff --git a/xmloff/source/xforms/xformsexport.cxx b/xmloff/source/xforms/xformsexport.cxx index 8374caa083e3..69a8d703f117 100644 --- a/xmloff/source/xforms/xformsexport.cxx +++ b/xmloff/source/xforms/xformsexport.cxx @@ -111,9 +111,9 @@ typedef OUString (*convert_t)( const Any& ); typedef struct { const sal_Char* pPropertyName; - sal_uInt16 nNamespace; + sal_uInt16 const nNamespace; sal_uInt16 nToken; - convert_t aConverter; + convert_t const aConverter; } ExportTable; static void lcl_export( const Reference<XPropertySet>& rPropertySet, SvXMLExport& rExport, |