summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2020-11-20 17:23:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-22 11:28:21 +0100
commit018706ff4fe0bc25d401f789d0c6750a0e94ec1a (patch)
tree55ba423d084266e7ddca627f3459a8f215b48d72 /xmloff
parent371964b963f89660dbc545c3a35834f1448e088b (diff)
fastparser in XMLStringBufferImportContext
Change-Id: I1474bcd98c87ab4a3bfe3cc0e9b8e434e7ce4144 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106280 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/inc/XMLStringBufferImportContext.hxx8
-rw-r--r--xmloff/source/text/XMLStringBufferImportContext.cxx11
-rw-r--r--xmloff/source/text/txtfldi.cxx11
3 files changed, 4 insertions, 26 deletions
diff --git a/xmloff/inc/XMLStringBufferImportContext.hxx b/xmloff/inc/XMLStringBufferImportContext.hxx
index 7896667ff357..1975f1e5a0bc 100644
--- a/xmloff/inc/XMLStringBufferImportContext.hxx
+++ b/xmloff/inc/XMLStringBufferImportContext.hxx
@@ -29,8 +29,6 @@
/**
* Import all text into a string buffer. Paragraph elements (<text:p>)
* are recognized and cause a return character (0x0a) to be added.
- *
- * Supports both old and fast-parser.
*/
class XMLStringBufferImportContext final : public SvXMLImportContext
{
@@ -40,12 +38,6 @@ public:
XMLStringBufferImportContext(
SvXMLImport& rImport,
- sal_uInt16 nPrefix,
- const OUString& sLocalName,
- OUStringBuffer& rBuffer);
-
- XMLStringBufferImportContext(
- SvXMLImport& rImport,
OUStringBuffer& rBuffer);
virtual ~XMLStringBufferImportContext() override;
diff --git a/xmloff/source/text/XMLStringBufferImportContext.cxx b/xmloff/source/text/XMLStringBufferImportContext.cxx
index f61db1fdf6d3..9e25d6234694 100644
--- a/xmloff/source/text/XMLStringBufferImportContext.cxx
+++ b/xmloff/source/text/XMLStringBufferImportContext.cxx
@@ -27,17 +27,6 @@ using ::com::sun::star::xml::sax::XAttributeList;
using ::xmloff::token::IsXMLToken;
using ::xmloff::token::XML_P;
-
-XMLStringBufferImportContext::XMLStringBufferImportContext(
- SvXMLImport& rImport,
- sal_uInt16 nPrefix,
- const OUString& sLocalName,
- OUStringBuffer& rBuffer) :
- SvXMLImportContext(rImport, nPrefix, sLocalName),
- rTextBuffer(rBuffer)
-{
-}
-
XMLStringBufferImportContext::XMLStringBufferImportContext(
SvXMLImport& rImport,
OUStringBuffer& rBuffer) :
diff --git a/xmloff/source/text/txtfldi.cxx b/xmloff/source/text/txtfldi.cxx
index 121664d1973c..60c6027ce83b 100644
--- a/xmloff/source/text/txtfldi.cxx
+++ b/xmloff/source/text/txtfldi.cxx
@@ -3318,19 +3318,16 @@ SvXMLImportContextRef XMLAnnotationImportContext::CreateChildContext(
if( XML_NAMESPACE_DC == nPrefix )
{
if( IsXMLToken( rLocalName, XML_CREATOR ) )
- pContext = new XMLStringBufferImportContext(GetImport(), nPrefix,
- rLocalName, aAuthorBuffer);
+ pContext = new XMLStringBufferImportContext(GetImport(), aAuthorBuffer);
else if( IsXMLToken( rLocalName, XML_DATE ) )
- pContext = new XMLStringBufferImportContext(GetImport(), nPrefix,
- rLocalName, aDateBuffer);
+ pContext = new XMLStringBufferImportContext(GetImport(), aDateBuffer);
}
else if (((XML_NAMESPACE_TEXT == nPrefix || XML_NAMESPACE_LO_EXT == nPrefix)
&& IsXMLToken(rLocalName, XML_SENDER_INITIALS))
|| (XML_NAMESPACE_META == nPrefix
&& IsXMLToken(rLocalName, XML_CREATOR_INITIALS)))
{
- pContext = new XMLStringBufferImportContext(GetImport(), nPrefix,
- rLocalName, aInitialsBuffer);
+ pContext = new XMLStringBufferImportContext(GetImport(), aInitialsBuffer);
}
if( !pContext )
@@ -3367,7 +3364,7 @@ SvXMLImportContextRef XMLAnnotationImportContext::CreateChildContext(
}
if( !pContext )
- pContext = new XMLStringBufferImportContext(GetImport(), nPrefix, rLocalName, aTextBuffer);
+ pContext = new XMLStringBufferImportContext(GetImport(), aTextBuffer);
}
return pContext;