Kaydet (Commit) 768abe34 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:stringconstant: Flag more inefficiencies

Change-Id: Ia4f844e0e9249f54d134fbbde11aa1f7e250e8af
üst 8987a292
...@@ -75,10 +75,10 @@ namespace pcr ...@@ -75,10 +75,10 @@ namespace pcr
if (::comphelper::hasProperty(PROPERTY_CLASSID, m_xControlModel)) if (::comphelper::hasProperty(PROPERTY_CLASSID, m_xControlModel))
nClassID = ::comphelper::getINT16(m_xControlModel->getPropertyValue(PROPERTY_CLASSID)); nClassID = ::comphelper::getINT16(m_xControlModel->getPropertyValue(PROPERTY_CLASSID));
sDescription = sDescription.replaceAll(OUString("$controlclass$"), sDescription = sDescription.replaceAll("$controlclass$",
GetUIHeadlineName(nClassID, makeAny(m_xControlModel))); GetUIHeadlineName(nClassID, makeAny(m_xControlModel)));
OUString sName = ::comphelper::getString(m_xControlModel->getPropertyValue(PROPERTY_NAME)); OUString sName = ::comphelper::getString(m_xControlModel->getPropertyValue(PROPERTY_NAME));
sDescription = sDescription.replaceAll(OUString("$controlname$"), sName); sDescription = sDescription.replaceAll("$controlname$", sName);
m_pMainDesc->SetText(sDescription); m_pMainDesc->SetText(sDescription);
// search for the root of the form hierarchy // search for the root of the form hierarchy
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment