summaryrefslogtreecommitdiffstats
path: root/unoxml/source/dom/text.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2011-01-19 20:27:19 +0100
committerMichael Stahl <mst@openoffice.org>2011-01-19 20:27:19 +0100
commita10e0ee65f2721aadae0d1e6cc26f749e3ac6bf6 (patch)
treea8a8081c6d2d1245e2a6a6d09dd9471a583683c0 /unoxml/source/dom/text.cxx
parentxmlfix3: unoxml: new method CNode::invalidate (diff)
downloadcore-a10e0ee65f2721aadae0d1e6cc26f749e3ac6bf6.tar.gz
core-a10e0ee65f2721aadae0d1e6cc26f749e3ac6bf6.zip
xmlfix3: unoxml: refactor CNode initialization
Diffstat (limited to 'unoxml/source/dom/text.cxx')
-rw-r--r--unoxml/source/dom/text.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/unoxml/source/dom/text.cxx b/unoxml/source/dom/text.cxx
index d60fcf234ebf..5e8cf47225c2 100644
--- a/unoxml/source/dom/text.cxx
+++ b/unoxml/source/dom/text.cxx
@@ -26,12 +26,17 @@
************************************************************************/
#include "text.hxx"
+
namespace DOM
{
+ CText::CText(NodeType const& reNodeType, xmlNodePtr const& rpNode)
+ : CText_Base(reNodeType, rpNode)
+ {
+ }
+
CText::CText(const xmlNodePtr aNodePtr)
+ : CText_Base(NodeType_TEXT_NODE, aNodePtr)
{
- m_aNodeType = NodeType_TEXT_NODE;
- init_characterdata(aNodePtr);
}
void SAL_CALL CText::saxify(
@@ -40,11 +45,6 @@ namespace DOM
i_xHandler->characters(getData());
}
- void CText::init_text(const xmlNodePtr aNodePtr)
- {
- init_characterdata(aNodePtr);
- }
-
Reference< XText > SAL_CALL CText::splitText(sal_Int32 /*offset*/)
throw (RuntimeException)
{