Skip to content

Commit

Permalink
Replaced addDir(const DirDef *dd) by addDir(DirDef *const dd) in Grou…
Browse files Browse the repository at this point in the history
…pDef and GropuDefImpl.

Required as the list type the directories are added to has pointers to non-const DirDef as value type.

(cherry picked from commit be6f072)
  • Loading branch information
dhebbeker committed May 5, 2020
1 parent a075507 commit 8b2d001
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/groupdef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class GroupDefImpl : public DefinitionImpl, public GroupDef
virtual void addGroup(const GroupDef *def);
virtual void addPage(PageDef *def);
virtual void addExample(const PageDef *def);
virtual void addDir(const DirDef *dd);
virtual void addDir(DirDef *const dd);
virtual bool insertMember(MemberDef *def,bool docOnly=FALSE);
virtual void removeMember(MemberDef *md);
virtual bool findGroup(const GroupDef *def) const; // true if def is a subgroup of this group
Expand Down Expand Up @@ -327,7 +327,7 @@ bool GroupDefImpl::addNamespace(const NamespaceDef *def)
return FALSE;
}

void GroupDefImpl::addDir(const DirDef *def)
void GroupDefImpl::addDir(DirDef *const def)
{
if (def->isHidden()) return;
if (Config_getBool(SORT_BRIEF_DOCS))
Expand Down
2 changes: 1 addition & 1 deletion src/groupdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class GroupDef : virtual public Definition
virtual void addGroup(const GroupDef *def) = 0;
virtual void addPage(PageDef *def) = 0;
virtual void addExample(const PageDef *def) = 0;
virtual void addDir(const DirDef *dd) = 0;
virtual void addDir(DirDef *const dd) = 0;
virtual bool insertMember(MemberDef *def,bool docOnly=FALSE) = 0;
virtual void removeMember(MemberDef *md) = 0;
virtual bool findGroup(const GroupDef *def) const = 0;
Expand Down

0 comments on commit 8b2d001

Please sign in to comment.