From 29a8e51aea4e6956a388deaa1104fb1d81476ad3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 23 Jul 2018 17:06:00 +0200 Subject: 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 --- xmloff/source/xforms/SchemaRestrictionContext.hxx | 2 +- xmloff/source/xforms/xformsexport.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'xmloff/source/xforms') 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 mxRepository; css::uno::Reference 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& rPropertySet, SvXMLExport& rExport, -- cgit