Commit 3ecae5a5 authored by Ariya Hidayat's avatar Ariya Hidayat
Browse files

forgot the constness

svn path=/trunk/koffice/; revision=600177
parent 277c79c9
...@@ -1433,23 +1433,23 @@ KoXmlNode KoXmlNode::namedItemNS( const QString& nsURI, const QString& name ) co ...@@ -1433,23 +1433,23 @@ KoXmlNode KoXmlNode::namedItemNS( const QString& nsURI, const QString& name ) co
return KoXmlNode(); return KoXmlNode();
} }
KoXmlElement KoXmlNode::toElement() KoXmlElement KoXmlNode::toElement() const
{ {
return isElement() ? KoXmlElement( d ) : KoXmlElement( new KoXmlNodeData ); return isElement() ? KoXmlElement( d ) : KoXmlElement( new KoXmlNodeData );
} }
KoXmlText KoXmlNode::toText() KoXmlText KoXmlNode::toText() const
{ {
return isText() ? KoXmlText( d ) : KoXmlText(); return isText() ? KoXmlText( d ) : KoXmlText();
} }
KoXmlCDATASection KoXmlNode::toCDATASection() KoXmlCDATASection KoXmlNode::toCDATASection() const
{ {
return isCDATASection() ? KoXmlCDATASection( (KoXmlNodeData*)d ) : return isCDATASection() ? KoXmlCDATASection( (KoXmlNodeData*)d ) :
KoXmlCDATASection(); KoXmlCDATASection();
} }
KoXmlDocument KoXmlNode::toDocument() KoXmlDocument KoXmlNode::toDocument() const
{ {
KoXmlNodeData* data = d; KoXmlNodeData* data = d;
if( !isDocument() ) if( !isDocument() )
......
...@@ -93,10 +93,10 @@ public: ...@@ -93,10 +93,10 @@ public:
virtual bool isDocument() const; virtual bool isDocument() const;
virtual void clear(); virtual void clear();
KoXmlElement toElement(); KoXmlElement toElement() const;
KoXmlText toText(); KoXmlText toText() const;
KoXmlCDATASection toCDATASection(); KoXmlCDATASection toCDATASection() const;
KoXmlDocument toDocument(); KoXmlDocument toDocument() const;
virtual QString nodeName() const; virtual QString nodeName() const;
virtual QString namespaceURI() const; virtual QString namespaceURI() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment