Commit 9e1a4bdd authored by Jochen Becher's avatar Jochen Becher

ModelEditor: Destructor shall not throw

Change-Id: I2a565095e841c2a6e70b04ace2cf6f7a2955b583
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>
parent 84761ec9
...@@ -60,8 +60,6 @@ public: ...@@ -60,8 +60,6 @@ public:
~QXmlOutArchive() ~QXmlOutArchive()
{ {
if (m_savingRefMap.countDanglingReferences() > 0)
throw DanglingReferences();
} }
template<typename T> template<typename T>
...@@ -112,6 +110,8 @@ public: ...@@ -112,6 +110,8 @@ public:
void endDocument() void endDocument()
{ {
m_stream.writeEndDocument(); m_stream.writeEndDocument();
if (m_savingRefMap.countDanglingReferences() > 0)
throw DanglingReferences();
} }
void beginElement(const Tag &tag) void beginElement(const Tag &tag)
......
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