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
return KoXmlNode();
}
KoXmlElement KoXmlNode::toElement()
KoXmlElement KoXmlNode::toElement() const
{
return isElement() ? KoXmlElement( d ) : KoXmlElement( new KoXmlNodeData );
}
KoXmlText KoXmlNode::toText()
KoXmlText KoXmlNode::toText() const
{
return isText() ? KoXmlText( d ) : KoXmlText();
}
KoXmlCDATASection KoXmlNode::toCDATASection()
KoXmlCDATASection KoXmlNode::toCDATASection() const
{
return isCDATASection() ? KoXmlCDATASection( (KoXmlNodeData*)d ) :
KoXmlCDATASection();
}
KoXmlDocument KoXmlNode::toDocument()
KoXmlDocument KoXmlNode::toDocument() const
{
KoXmlNodeData* data = d;
if( !isDocument() )
......
......@@ -93,10 +93,10 @@ public:
virtual bool isDocument() const;
virtual void clear();
KoXmlElement toElement();
KoXmlText toText();
KoXmlCDATASection toCDATASection();
KoXmlDocument toDocument();
KoXmlElement toElement() const;
KoXmlText toText() const;
KoXmlCDATASection toCDATASection() const;
KoXmlDocument toDocument() const;
virtual QString nodeName() 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