From 65ae6af9f460b1a28f3e07480347ff7f90adae38 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 18 Aug 2020 09:43:04 +0200 Subject: loplugin:unusedvarsglobal tackle some read-only vars. Mark some of them const to make it obvious they are not really used, and to make the constantparam plugin see more data. Change-Id: Ia25927745866746aa1aa9d5affd5857ad9f9ee24 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100895 Tested-by: Jenkins Reviewed-by: Noel Grandin --- chart2/source/tools/ObjectIdentifier.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'chart2') diff --git a/chart2/source/tools/ObjectIdentifier.cxx b/chart2/source/tools/ObjectIdentifier.cxx index 2b7628f7a0ab..c2979f13f5b3 100644 --- a/chart2/source/tools/ObjectIdentifier.cxx +++ b/chart2/source/tools/ObjectIdentifier.cxx @@ -311,10 +311,10 @@ OUString ObjectIdentifier::createClassifiedIdentifierForObject( OUString aRet; enum ObjectType eObjectType = OBJECTTYPE_UNKNOWN; - OUString aObjectID; + const OUString aObjectID; OUString aParentParticle; - OUString aDragMethodServiceName; - OUString aDragParameterString; + const OUString aDragMethodServiceName; + const OUString aDragParameterString; try { @@ -393,10 +393,10 @@ OUString ObjectIdentifier::createClassifiedIdentifierForObject( OUString aRet; enum ObjectType eObjectType = OBJECTTYPE_UNKNOWN; - OUString aObjectID; + const OUString aObjectID; OUString aParentParticle; - OUString aDragMethodServiceName; - OUString aDragParameterString; + const OUString aDragMethodServiceName; + const OUString aDragParameterString; try { -- cgit