diff options
author | Noel Grandin <noel@peralex.com> | 2013-10-25 17:17:50 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-04 10:11:07 +0200 |
commit | aeb41c9b9b7559c6d87bf92807acdc0df9e104cc (patch) | |
tree | 5a36bcd5af873c2b597fcda5fbd7e2f76f997669 /svtools | |
parent | 57c2de08ddf14c0da80de06736d99382ad036539 (diff) |
remove redundant calls to OUString constructor
Change code like this:
aStr = OUString("xxxx");
into this:
aStr = "xxxx";
Change-Id: I31cb92e21658d57bb9e14b65c179536eae8096f6
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/config/extcolorcfg.cxx | 4 | ||||
-rw-r--r-- | svtools/source/config/fontsubstconfig.cxx | 11 | ||||
-rw-r--r-- | svtools/source/dialogs/addresstemplate.cxx | 10 |
3 files changed, 9 insertions, 16 deletions
diff --git a/svtools/source/config/extcolorcfg.cxx b/svtools/source/config/extcolorcfg.cxx index 34a534efa0b7..6456a9b8cc90 100644 --- a/svtools/source/config/extcolorcfg.cxx +++ b/svtools/source/config/extcolorcfg.cxx @@ -268,7 +268,7 @@ void ExtendedColorConfig_Impl::Load(const OUString& rScheme) m_aComponentDisplayNames.insert(TDisplayNames::value_type(pIter->getToken(1,'/',nIndex),sComponentDisplayName)); } - *pIter += OUString("/Entries"); + *pIter += "/Entries"; uno::Sequence < OUString > aDisplayNames = GetPropertyNames(*pIter); lcl_addString(aDisplayNames,sDisplayName); @@ -472,7 +472,7 @@ sal_Bool ExtendedColorConfig_Impl::ExistsScheme(const OUString& _sSchemeName) OUString sBase("ExtendedColorScheme/ColorSchemes"); uno::Sequence < OUString > aComponentNames = GetPropertyNames(sBase); - sBase += OUString("/") + _sSchemeName; + sBase += "/" + _sSchemeName; const OUString* pCompIter = aComponentNames.getConstArray(); const OUString* pCompEnd = pCompIter + aComponentNames.getLength(); for(;pCompIter != pCompEnd && *pCompIter != sBase;++pCompIter) diff --git a/svtools/source/config/fontsubstconfig.cxx b/svtools/source/config/fontsubstconfig.cxx index 2f55f5dd97d2..4d97c9bdeaa2 100644 --- a/svtools/source/config/fontsubstconfig.cxx +++ b/svtools/source/config/fontsubstconfig.cxx @@ -65,13 +65,11 @@ SvtFontSubstConfig::SvtFontSubstConfig() : Sequence<OUString> aPropNames(aNodeNames.getLength() * 4); OUString* pNames = aPropNames.getArray(); sal_Int32 nName = 0; - sPropPrefix += OUString("/"); + sPropPrefix += "/"; sal_Int32 nNode; for(nNode = 0; nNode < aNodeNames.getLength(); nNode++) { - OUString sStart(sPropPrefix); - sStart += pNodeNames[nNode]; - sStart += OUString("/"); + OUString sStart = sPropPrefix + pNodeNames[nNode] + "/"; pNames[nName] = sStart; pNames[nName++] += cReplaceFont; pNames[nName] = sStart; pNames[nName++] += cSubstituteFont; pNames[nName] = sStart; pNames[nName++] += cAlways; @@ -125,10 +123,7 @@ void SvtFontSubstConfig::Commit() const uno::Type& rBoolType = ::getBooleanCppuType(); for(size_t i = 0; i < pImpl->aSubstArr.size(); i++) { - OUString sPrefix(sNode); - sPrefix += "/_"; - sPrefix += OUString::number(i); - sPrefix += "/"; + OUString sPrefix = sNode + "/_" + OUString::number(i) + "/"; SubstitutionStruct& pSubst = pImpl->aSubstArr[i]; pSetValues[nSetValue].Name = sPrefix; pSetValues[nSetValue].Name += sReplaceFont; diff --git a/svtools/source/dialogs/addresstemplate.cxx b/svtools/source/dialogs/addresstemplate.cxx index eb81fb6f7ea2..fc4a4810f463 100644 --- a/svtools/source/dialogs/addresstemplate.cxx +++ b/svtools/source/dialogs/addresstemplate.cxx @@ -348,7 +348,7 @@ void AssignmentPersistentData::Commit() { OUString sFieldPath("Fields/"); sFieldPath += _rLogicalName; - sFieldPath += OUString("/AssignedFieldName"); + sFieldPath += "/AssignedFieldName"; sAssignment = getStringProperty(sFieldPath); } return sAssignment; @@ -421,17 +421,15 @@ void AssignmentPersistentData::Commit() // Fields/<field> OUString sFieldElementNodePath(sDescriptionNodePath); - sFieldElementNodePath += OUString("/"); + sFieldElementNodePath += "/"; sFieldElementNodePath += _rLogicalName; Sequence< PropertyValue > aNewFieldDescription(2); // Fields/<field>/ProgrammaticFieldName - aNewFieldDescription[0].Name = sFieldElementNodePath; - aNewFieldDescription[0].Name += OUString("/ProgrammaticFieldName"); + aNewFieldDescription[0].Name = sFieldElementNodePath + "/ProgrammaticFieldName"; aNewFieldDescription[0].Value <<= _rLogicalName; // Fields/<field>/AssignedFieldName - aNewFieldDescription[1].Name = sFieldElementNodePath; - aNewFieldDescription[1].Name += OUString("/AssignedFieldName"); + aNewFieldDescription[1].Name = sFieldElementNodePath + "/AssignedFieldName"; aNewFieldDescription[1].Value <<= _rAssignment; // just set the new value |