diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-04 08:37:10 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-11-04 07:34:41 +0000 |
commit | 81824d135987712b57e3c81a26f72ae4fabb4031 (patch) | |
tree | f4268731e5af7b5c2658ecab0dcb7d2caa3c2a4d /xmloff/source/text/txtvfldi.cxx | |
parent | 62dbe2e6eb30660f252b4e2c048f4aecf28e41c6 (diff) |
loplugin:stringconstant
Change-Id: I6cc11a273902da8acdb6adbccccc31fe30ab274e
Reviewed-on: https://gerrit.libreoffice.org/19768
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'xmloff/source/text/txtvfldi.cxx')
-rw-r--r-- | xmloff/source/text/txtvfldi.cxx | 15 |
1 files changed, 3 insertions, 12 deletions
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 { |