summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Hebbeker <david@hebbeker.info>2020-04-26 10:13:45 (GMT)
committerDavid Hebbeker <david@hebbeker.info>2020-05-05 16:29:27 (GMT)
commit8b2d00106d564068ad58d2f51bef155a4d0e982e (patch)
treeba4f46458d6056c26e105b1caf2c924932e64455
parenta0755075b7ce190c3eb2a48c9238f34240ea8c8d (diff)
downloadDoxygen-8b2d00106d564068ad58d2f51bef155a4d0e982e.zip
Doxygen-8b2d00106d564068ad58d2f51bef155a4d0e982e.tar.gz
Doxygen-8b2d00106d564068ad58d2f51bef155a4d0e982e.tar.bz2
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)
-rw-r--r--src/groupdef.cpp4
-rw-r--r--src/groupdef.h2
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;