From 8b2d00106d564068ad58d2f51bef155a4d0e982e Mon Sep 17 00:00:00 2001 From: David Hebbeker Date: Sun, 26 Apr 2020 12:13:45 +0200 Subject: Replaced addDir(const DirDef *dd) by addDir(DirDef *const dd) in GroupDef 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 be6f0726eff5371a656a0831d50676cd30116170) --- src/groupdef.cpp | 4 ++-- src/groupdef.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/groupdef.cpp b/src/groupdef.cpp index e2d5b12..4a119df 100644 --- a/src/groupdef.cpp +++ b/src/groupdef.cpp @@ -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 @@ -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)) diff --git a/src/groupdef.h b/src/groupdef.h index 9b37d0f..b2b8b29 100644 --- a/src/groupdef.h +++ b/src/groupdef.h @@ -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; -- cgit v0.12