@@ -1722,8 +1722,8 @@ void ClassDefImpl::writeInheritanceGraph(OutputList &ol) const
1722
1722
{
1723
1723
auto replaceFunc = [this ,&ol](size_t entryIndex)
1724
1724
{
1725
- BaseClassDef &bcd=m_impl->inherits [entryIndex];
1726
- ClassDef *cd=bcd.classDef ;
1725
+ const BaseClassDef &bcd=m_impl->inherits [entryIndex];
1726
+ const ClassDef *cd=bcd.classDef ;
1727
1727
1728
1728
// use the class name but with the template arguments as given
1729
1729
// in the inheritance relation
@@ -1757,8 +1757,8 @@ void ClassDefImpl::writeInheritanceGraph(OutputList &ol) const
1757
1757
1758
1758
auto replaceFunc = [this ,&ol](size_t entryIndex)
1759
1759
{
1760
- BaseClassDef &bcd=m_impl->inheritedBy [entryIndex];
1761
- ClassDef *cd=bcd.classDef ;
1760
+ const BaseClassDef &bcd=m_impl->inheritedBy [entryIndex];
1761
+ const ClassDef *cd=bcd.classDef ;
1762
1762
if (cd->isLinkable ())
1763
1763
{
1764
1764
ol.writeObjectLink (cd->getReference (),cd->getOutputFileBase (),cd->anchor (),cd->displayName ());
@@ -3782,8 +3782,8 @@ void ClassDefImpl::mergeCategory(ClassDef *cat)
3782
3782
if (dstMni) // method is already defined in the class
3783
3783
{
3784
3784
// printf("Existing member %s\n",srcMni->memberName());
3785
- auto &dstMi = dstMni->front ();
3786
- auto &srcMi = srcMni->front ();
3785
+ const auto &dstMi = dstMni->front ();
3786
+ const auto &srcMi = srcMni->front ();
3787
3787
if (srcMi && dstMi)
3788
3788
{
3789
3789
MemberDefMutable *smdm = toMemberDefMutable (srcMi->memberDef ());
0 commit comments