diff options
author | Noel <noelgrandin@gmail.com> | 2020-12-14 15:05:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-12-14 17:46:15 +0100 |
commit | 1b69f0c2731ec66e76073ab0f2936b7112bf1e77 (patch) | |
tree | dfefda1f5c2e885dac499363a663390ba79793b0 /reportdesign | |
parent | eed2f0fd3fb70bcf26539683c4347e418da66ff1 (diff) |
use more direct parsing on FastAttributeList
instead of first allocating an OUString
Change-Id: I796b1b2d47eb3cb9bebb00ae1bbd465010ebf494
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107691
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/filter/xml/xmlCell.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/reportdesign/source/filter/xml/xmlCell.cxx b/reportdesign/source/filter/xml/xmlCell.cxx index 27155525ba69..adfac9d59cc6 100644 --- a/reportdesign/source/filter/xml/xmlCell.cxx +++ b/reportdesign/source/filter/xml/xmlCell.cxx @@ -62,18 +62,16 @@ OXMLCell::OXMLCell( ORptFilter& rImport for (auto &aIter : sax_fastparser::castToFastAttributeList( _xAttrList )) { - OUString sValue = aIter.toString(); - switch( aIter.getToken() ) { case XML_ELEMENT(TABLE, XML_STYLE_NAME): - m_sStyleName = sValue; + m_sStyleName = aIter.toString(); break; case XML_ELEMENT(TABLE, XML_NUMBER_COLUMNS_SPANNED): - m_pContainer->setColumnSpanned(sValue.toInt32()); + m_pContainer->setColumnSpanned(aIter.toInt32()); break; case XML_ELEMENT(TABLE, XML_NUMBER_ROWS_SPANNED): - m_pContainer->setRowSpanned(sValue.toInt32()); + m_pContainer->setRowSpanned(aIter.toInt32()); break; default: XMLOFF_WARN_UNKNOWN("reportdesign", aIter); |