# HG changeset patch # User Chris Cannam # Date 1192702507 0 # Node ID 29c356da4ae4db7b726710c335ec5b0c55062fda # Parent 61bf55e80080234ff9556048b7fdcaa2fc6a9f3a * Make XmlExportable::toXml the function that is universally overridden (and pure virtual) instead of toXmlString. Tidies up some classes, notably the model classes, significantly. Closes #1794561. diff -r 61bf55e80080 -r 29c356da4ae4 document/Document.cpp --- a/document/Document.cpp Thu Oct 18 09:36:05 2007 +0000 +++ b/document/Document.cpp Thu Oct 18 10:15:07 2007 +0000 @@ -27,6 +27,7 @@ #include "base/PlayParameters.h" #include "transform/TransformFactory.h" #include +#include #include //!!! still need to handle command history, documentRestored/documentModified @@ -862,16 +863,4 @@ out << indent + "\n"; } -QString -Document::toXmlString(QString indent, QString extraAttributes) const -{ - QString s; - { - QTextStream out(&s); - toXml(out, indent, extraAttributes); - } - - return s; -} - diff -r 61bf55e80080 -r 29c356da4ae4 document/Document.h --- a/document/Document.h Thu Oct 18 09:36:05 2007 +0000 +++ b/document/Document.h Thu Oct 18 10:15:07 2007 +0000 @@ -190,8 +190,6 @@ void removeLayerFromView(View *, Layer *); void toXml(QTextStream &, QString indent, QString extraAttributes) const; - QString toXmlString(QString indent, QString extraAttributes) const; - signals: void layerAdded(Layer *); void layerRemoved(Layer *);