summaryrefslogtreecommitdiff
path: root/sc/source/filter/xcl97/XclExpChangeTrack.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2019-04-19 01:05:01 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2019-04-19 01:47:35 +0200
commit5e4a02028a8b885997eab7693ef131f4a0c02d8a (patch)
tree7e88e10b853f967800372c1ec143cfa587a3957e /sc/source/filter/xcl97/XclExpChangeTrack.cxx
parentb56678eaf231d4e8998aef928ab314918c5bd187 (diff)
Further cleanup to not use FSEND and useless string conversions
... in XclExpXmlStream::WriteAttributes Change-Id: Ideae6685e7f035970850d86bcaea74c525f1ec81 Reviewed-on: https://gerrit.libreoffice.org/70957 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sc/source/filter/xcl97/XclExpChangeTrack.cxx')
-rw-r--r--sc/source/filter/xcl97/XclExpChangeTrack.cxx34
1 files changed, 15 insertions, 19 deletions
diff --git a/sc/source/filter/xcl97/XclExpChangeTrack.cxx b/sc/source/filter/xcl97/XclExpChangeTrack.cxx
index 7c491e5497cb..e3e48b2dac0b 100644
--- a/sc/source/filter/xcl97/XclExpChangeTrack.cxx
+++ b/sc/source/filter/xcl97/XclExpChangeTrack.cxx
@@ -352,7 +352,7 @@ void XclExpChTrHeader::SaveXml( XclExpXmlStream& rRevisionHeadersStrm )
{
sax_fastparser::FSHelperPtr pHeaders = rRevisionHeadersStrm.GetCurrentStream();
rRevisionHeadersStrm.WriteAttributes(
- XML_guid, lcl_GuidToOString( aGUID ).getStr(),
+ XML_guid, lcl_GuidToOString(aGUID),
XML_lastGuid, nullptr, // OOXTODO
XML_shared, nullptr, // OOXTODO
XML_diskRevisions, nullptr, // OOXTODO
@@ -363,8 +363,7 @@ void XclExpChTrHeader::SaveXml( XclExpXmlStream& rRevisionHeadersStrm )
XML_version, nullptr, // OOXTODO
XML_keepChangeHistory, nullptr, // OOXTODO
XML_protected, nullptr, // OOXTODO
- XML_preserveHistory, nullptr, // OOXTODO
- FSEND );
+ XML_preserveHistory, nullptr); // OOXTODO
pHeaders->write( ">" );
}
@@ -380,9 +379,9 @@ void XclExpXmlChTrHeaders::SaveXml( XclExpXmlStream& rStrm )
pHeaders->write("<")->writeId(XML_headers);
rStrm.WriteAttributes(
- XML_xmlns, rStrm.getNamespaceURL(OOX_NS(xls)).toUtf8().getStr(),
- FSNS(XML_xmlns, XML_r), rStrm.getNamespaceURL(OOX_NS(officeRel)).toUtf8().getStr(),
- XML_guid, lcl_GuidToOString(maGUID).getStr(),
+ XML_xmlns, rStrm.getNamespaceURL(OOX_NS(xls)),
+ FSNS(XML_xmlns, XML_r), rStrm.getNamespaceURL(OOX_NS(officeRel)),
+ XML_guid, lcl_GuidToOString(maGUID),
XML_lastGuid, nullptr, // OOXTODO
XML_shared, nullptr, // OOXTODO
XML_diskRevisions, nullptr, // OOXTODO
@@ -393,8 +392,7 @@ void XclExpXmlChTrHeaders::SaveXml( XclExpXmlStream& rStrm )
XML_version, nullptr, // OOXTODO
XML_keepChangeHistory, nullptr, // OOXTODO
XML_protected, nullptr, // OOXTODO
- XML_preserveHistory, nullptr, // OOXTODO
- FSEND);
+ XML_preserveHistory, nullptr); // OOXTODO
pHeaders->write(">");
}
@@ -429,21 +427,20 @@ void XclExpXmlChTrHeader::SaveXml( XclExpXmlStream& rStrm )
&aRelId);
rStrm.WriteAttributes(
- XML_guid, lcl_GuidToOString(maGUID).getStr(),
- XML_dateTime, lcl_DateTimeToOString(maDateTime).getStr(),
- XML_userName, maUserName.toUtf8(),
- FSNS(XML_r, XML_id), aRelId.toUtf8(),
- FSEND);
+ XML_guid, lcl_GuidToOString(maGUID),
+ XML_dateTime, lcl_DateTimeToOString(maDateTime),
+ XML_userName, maUserName,
+ FSNS(XML_r, XML_id), aRelId);
if (mnMinAction)
- rStrm.WriteAttributes(XML_minRId, OString::number(mnMinAction).getStr(), FSEND);
+ rStrm.WriteAttributes(XML_minRId, OUString::number(mnMinAction));
if (mnMaxAction)
- rStrm.WriteAttributes(XML_maxRId, OString::number(mnMaxAction).getStr(), FSEND);
+ rStrm.WriteAttributes(XML_maxRId, OUString::number(mnMaxAction));
if (!maTabBuffer.empty())
// next available sheet index.
- rStrm.WriteAttributes(XML_maxSheetId, OString::number(maTabBuffer.back()+1).getStr(), FSEND);
+ rStrm.WriteAttributes(XML_maxSheetId, OUString::number(maTabBuffer.back()+1));
pHeader->write(">");
@@ -473,9 +470,8 @@ void XclExpXmlChTrHeader::SaveXml( XclExpXmlStream& rStrm )
pRevLogStrm->write("<")->writeId(XML_revisions);
rStrm.WriteAttributes(
- XML_xmlns, rStrm.getNamespaceURL(OOX_NS(xls)).toUtf8(),
- FSNS(XML_xmlns, XML_r), rStrm.getNamespaceURL(OOX_NS(officeRel)).toUtf8(),
- FSEND);
+ XML_xmlns, rStrm.getNamespaceURL(OOX_NS(xls)),
+ FSNS(XML_xmlns, XML_r), rStrm.getNamespaceURL(OOX_NS(officeRel)));
pRevLogStrm->write(">");