summaryrefslogtreecommitdiffstats
path: root/src/membergroup.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/membergroup.h')
-rw-r--r--src/membergroup.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/membergroup.h b/src/membergroup.h
index 8d49716..d9a392e 100644
--- a/src/membergroup.h
+++ b/src/membergroup.h
@@ -50,7 +50,7 @@ class MemberGroup
~MemberGroup();
QCString header() const { return grpHeader; }
int groupId() const { return grpId; }
- void insertMember(MemberDef *md);
+ void insertMember(const MemberDef *md);
void setAnchors();
void writePlainDeclarations(OutputList &ol,
const ClassDef *cd,const NamespaceDef *nd,const FileDef *fd,const GroupDef *gd,
@@ -86,7 +86,7 @@ class MemberGroup
void setInGroup(bool b);
void addListReferences(Definition *d);
void setRefItems(const RefItemVector &sli);
- MemberList *members() const { return memberList; }
+ const MemberList &members() const { return *memberList.get(); }
QCString anchor() const;
QCString docFile() const { return m_docFile; }
@@ -94,7 +94,7 @@ class MemberGroup
private:
const Definition *m_container;
- MemberList *memberList = 0; // list of all members in the group
+ std::unique_ptr<MemberList> memberList; // list of all members in the group
MemberList *inDeclSection = 0;
int grpId = 0;
QCString grpHeader;
@@ -106,8 +106,13 @@ class MemberGroup
RefItemVector m_xrefListItems;
};
-using MemberGroupRefList = std::vector<MemberGroup *>;
-using MemberGroupList = std::vector< std::unique_ptr<MemberGroup> >;
+class MemberGroupRefList : public std::vector<MemberGroup *>
+{
+};
+
+class MemberGroupList : public std::vector< std::unique_ptr<MemberGroup> >
+{
+};
/** Data collected for a member group */
struct MemberGroupInfo