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

View File

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