summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-28 18:07:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-29 12:14:02 +0200
commita612d738a8c909e18ed89675432ca42b376ef624 (patch)
tree67729979d1f7b14726dce15f3d44faaf54e28bde /reportdesign
parent415436ad27b4522102d3fbbb6003935871029fc6 (diff)
loplugin:stringloop in sd
Change-Id: I5b0cd65b6e69490c79e0ac37c137283d19711787 Reviewed-on: https://gerrit.libreoffice.org/58252 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx b/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx
index cee792543ef1..3d78ed662161 100644
--- a/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx
+++ b/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx
@@ -370,7 +370,6 @@ void ExportDocumentHandler::exportTableRows()
pCellAtt->AddAttribute(sValueType, "string");
bool bRemoveString = true;
- OUString sFormula;
const sal_Int32 nCount = m_aColumns.getLength();
if ( m_nColumnCount > nCount )
{
@@ -391,9 +390,7 @@ void ExportDocumentHandler::exportTableRows()
}
for(sal_Int32 i = 0; i < nCount ; ++i)
{
- sFormula = "field:[";
- sFormula += m_aColumns[i];
- sFormula += "]";
+ OUString sFormula = "field:[" + m_aColumns[i] + "]";
SvXMLAttributeList* pList = new SvXMLAttributeList();
uno::Reference< xml::sax::XAttributeList > xAttribs = pList;
pList->AddAttribute(sFormulaAttrib,sFormula);