Initialize pointer to a default value

This commit is contained in:
Chocobo1
2022-06-23 12:28:00 +08:00
parent 6de72ecc77
commit 02d906d3ae
77 changed files with 178 additions and 202 deletions

View File

@@ -76,13 +76,7 @@ struct DataFieldDescriptor
};
GeoIPDatabase::GeoIPDatabase(const quint32 size)
: m_ipVersion(0)
, m_recordSize(0)
, m_nodeCount(0)
, m_nodeSize(0)
, m_indexSize(0)
, m_recordBytes(0)
, m_size(size)
: m_size(size)
, m_data(new uchar[size])
{
}