From 81824d135987712b57e3c81a26f72ae4fabb4031 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 4 Nov 2015 08:37:10 +0200 Subject: loplugin:stringconstant Change-Id: I6cc11a273902da8acdb6adbccccc31fe30ab274e Reviewed-on: https://gerrit.libreoffice.org/19768 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmloff/source/text/txtvfldi.cxx | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'xmloff/source/text/txtvfldi.cxx') diff --git a/xmloff/source/text/txtvfldi.cxx b/xmloff/source/text/txtvfldi.cxx index 691712635c87..9d75525543c5 100644 --- a/xmloff/source/text/txtvfldi.cxx +++ b/xmloff/source/text/txtvfldi.cxx @@ -975,10 +975,7 @@ bool XMLVariableDeclImportContext::FindFieldMaster( Any aAny = xFieldMasterNameAccess->getByName(sVarServiceName); aAny >>= xMaster; - aAny = xMaster->getPropertyValue( - // sPropertySubType - OUString(sAPI_sub_type) - ); + aAny = xMaster->getPropertyValue(sAPI_sub_type); sal_Int16 nType = 0; aAny >>= nType; @@ -1052,10 +1049,7 @@ bool XMLVariableDeclImportContext::FindFieldMaster( // set name Any aAny; aAny <<= sName; - xMaster->setPropertyValue( - // sPropertyName - OUString(sAPI_name) - , aAny); + xMaster->setPropertyValue(sAPI_name, aAny); if (eVarType != VarTypeUserField) { // set subtype for setexp field @@ -1063,10 +1057,7 @@ bool XMLVariableDeclImportContext::FindFieldMaster( aAny <<= ((eVarType == VarTypeSimple) ? SetVariableType::VAR : SetVariableType::SEQUENCE); - xMaster->setPropertyValue( - // sPropertySubType - OUString(sAPI_sub_type) - , aAny); + xMaster->setPropertyValue(sAPI_sub_type, aAny); } // else : user field: no subtype } else { -- cgit