You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2001/04/30 23:18:40 UTC
cvs commit: xml-xalan/c/src/XalanSourceTree FormatterToSourceTree.cpp FormatterToSourceTree.hpp
dbertoni 01/04/30 14:18:39
Modified: c/src/XalanSourceTree FormatterToSourceTree.cpp
FormatterToSourceTree.hpp
Log:
Allow for default construction.
Revision Changes Path
1.5 +0 -1 xml-xalan/c/src/XalanSourceTree/FormatterToSourceTree.cpp
Index: FormatterToSourceTree.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XalanSourceTree/FormatterToSourceTree.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- FormatterToSourceTree.cpp 2001/03/02 19:08:30 1.4
+++ FormatterToSourceTree.cpp 2001/04/30 21:18:34 1.5
@@ -101,7 +101,6 @@
m_textBuffer(),
m_prefixResolver(0)
{
- assert(m_document != 0);
}
1.5 +38 -37 xml-xalan/c/src/XalanSourceTree/FormatterToSourceTree.hpp
Index: FormatterToSourceTree.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XalanSourceTree/FormatterToSourceTree.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- FormatterToSourceTree.hpp 2001/03/02 19:08:35 1.4
+++ FormatterToSourceTree.hpp 2001/04/30 21:18:36 1.5
@@ -114,7 +114,8 @@
*
* @param theDocument The document for nodes
*/
- FormatterToSourceTree(XalanSourceTreeDocument* theDocument);
+ explicit
+ FormatterToSourceTree(XalanSourceTreeDocument* theDocument = 0);
/**
* Construct a FormatterToSourceTree instance. it will add the nodes
@@ -131,6 +132,42 @@
~FormatterToSourceTree();
+ XalanSourceTreeDocument*
+ getDocument() const
+ {
+ return m_document;
+ }
+
+ void
+ setDocument(XalanSourceTreeDocument* theDocument)
+ {
+ m_document = theDocument;
+ }
+
+ XalanDocumentFragment*
+ getDocumentFragment() const
+ {
+ return m_documentFragment;
+ }
+
+ void
+ setDocumentFragment(XalanDocumentFragment* theDocumentFragment)
+ {
+ m_documentFragment = theDocumentFragment;
+ }
+
+ XalanSourceTreeElement*
+ getCurrentElement() const
+ {
+ return m_currentElement;
+ }
+
+ void
+ setCurrentElement(XalanSourceTreeElement* theElement)
+ {
+ m_currentElement = theElement;
+ }
+
const PrefixResolver*
getPrefixResolver() const
{
@@ -195,42 +232,6 @@
virtual void
resetDocument();
-
- XalanSourceTreeDocument*
- getDocument() const
- {
- return m_document;
- }
-
- void
- setDocument(XalanSourceTreeDocument* theDocument)
- {
- m_document = theDocument;
- }
-
- XalanDocumentFragment*
- getDocumentFragment() const
- {
- return m_documentFragment;
- }
-
- void
- setDocumentFragment(XalanDocumentFragment* theDocumentFragment)
- {
- m_documentFragment = theDocumentFragment;
- }
-
- XalanSourceTreeElement*
- getCurrentElement() const
- {
- return m_currentElement;
- }
-
- void
- setCurrentElement(XalanSourceTreeElement* theElement)
- {
- m_currentElement = theElement;
- }
private:
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org