Skip to content

Instantly share code, notes, and snippets.

@jef-n
Created October 26, 2015 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jef-n/8dec0450b97eb7dfb373 to your computer and use it in GitHub Desktop.
Save jef-n/8dec0450b97eb7dfb373 to your computer and use it in GitHub Desktop.
diff --git a/src/core/qgsproject.cpp b/src/core/qgsproject.cpp
index b138afc..61e1248 100644
--- a/src/core/qgsproject.cpp
+++ b/src/core/qgsproject.cpp
@@ -1013,10 +1013,7 @@ bool QgsProject::write()
QDomImplementation DomImplementation;
DomImplementation.setInvalidDataPolicy( QDomImplementation::DropInvalidChars );
- QDomDocumentType documentType =
- DomImplementation.createDocumentType( "qgis", "http://mrcc.com/qgis.dtd",
- "SYSTEM" );
- QScopedPointer<QDomDocument> doc( new QDomDocument( documentType ) );
+ QScopedPointer<QDomDocument> doc( new QDomDocument() );
QDomElement qgisNode = doc->createElement( "qgis" );
qgisNode.setAttribute( "projectname", title() );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment