summaryrefslogtreecommitdiffstats
path: root/sigmod
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-03-26 18:09:54 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-03-26 18:09:54 -0400
commitd14fdc4975fe1241baa9af1a48312bff0c90db52 (patch)
tree20f268a291a274d7598b2316853171096ee520d3 /sigmod
parent4325434c47799ad41003a1d100f24e0f705f6e17 (diff)
downloadsigen-d14fdc4975fe1241baa9af1a48312bff0c90db52.tar.gz
sigen-d14fdc4975fe1241baa9af1a48312bff0c90db52.tar.xz
sigen-d14fdc4975fe1241baa9af1a48312bff0c90db52.zip
Keep a QDomDocument around
Diffstat (limited to 'sigmod')
-rw-r--r--sigmod/Macros.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sigmod/Macros.h b/sigmod/Macros.h
index 61a7b60c..01d4b5ec 100644
--- a/sigmod/Macros.h
+++ b/sigmod/Macros.h
@@ -48,7 +48,8 @@
}
#define SAVE_CREATE() \
- QDomElement xml = QDomDocument().createElement(className()); \
+ QDomDocument doc; \
+ QDomElement xml = doc.createElement(className()); \
xml.setAttribute("id", id())
#define SAVE(variable) xml.appendChild(saveValue(#variable, m_##variable))
#define SAVE_ENUM(variable, type) xml.appendChild(saveEnum(#variable, m_##variable, type##Str))