ModelEditor: Use member initialization

Change-Id: Ib689bec4b12b3fb202bf54008ee06711f03c43c6
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Jochen Becher
2015-11-24 20:03:43 +01:00
parent 4334cec860
commit 7b32b63707
2 changed files with 2 additions and 9 deletions

View File

@@ -43,12 +43,6 @@ namespace impl {
class SavingRefMap
{
public:
SavingRefMap()
: m_references(),
m_nextRef(1)
{
}
template<typename T>
bool hasRef(const T *object)
{
@@ -79,7 +73,7 @@ private:
typedef QMap<KeyType, ValueType> MapType;
MapType m_references;
ObjectId m_nextRef;
ObjectId m_nextRef = ObjectId(1);
};
} // namespace impl

View File

@@ -551,9 +551,8 @@ private:
class XmlTag
{
public:
XmlTag() : m_isEndTag(false) { }
QString m_tagName;
bool m_isEndTag;
bool m_isEndTag = false;
impl::ObjectId m_id;
QHash<QString, QString> m_attributes;
};