Skip to content

Commit da18a83

Browse files
FelixPetriconimrbean-bremen
authored andcommitted
Default initialize all members
1 parent 24a10fa commit da18a83

File tree

2 files changed

+191
-191
lines changed

2 files changed

+191
-191
lines changed

generator/abstractmetalang.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ class AbstractMetaAttributes
153153
bool wasFriendly() const { return m_originalAttributes & Friendly; }
154154

155155
private:
156-
uint m_attributes;
157-
uint m_originalAttributes;
156+
uint m_attributes{};
157+
uint m_originalAttributes{};
158158
};
159159

160160

@@ -203,7 +203,7 @@ class AbstractMetaType
203203
// true when use pattern is container
204204
bool hasInstantiations() const { return !m_instantiations.isEmpty(); }
205205
void addInstantiation(AbstractMetaType *inst) { m_instantiations << inst; }
206-
void setInstantiations(const QList<AbstractMetaType *> &insts) { m_instantiations = insts; }
206+
void setInstantiations(const QList<AbstractMetaType *> &insts) { m_instantiations = insts; }
207207
QList<AbstractMetaType *> instantiations() const { return m_instantiations; }
208208
void setInstantiationInCpp(bool incpp) { m_cpp_instantiation = incpp; }
209209
bool hasInstantiationInCpp() const { return hasInstantiations() && m_cpp_instantiation; }

0 commit comments

Comments
 (0)