diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-10-17 11:35:15 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-10-17 11:35:15 (GMT) |
commit | 0b069049a176c4f8970f271e698489d9fc7d1da7 (patch) | |
tree | b6ce440fdf710d7522bb7b60e5783af0b97aff2c /src/classdef.cpp | |
parent | 3ef7ff7ff6e93f2c35a0864283fae5be3975c956 (diff) | |
download | Doxygen-0b069049a176c4f8970f271e698489d9fc7d1da7.zip Doxygen-0b069049a176c4f8970f271e698489d9fc7d1da7.tar.gz Doxygen-0b069049a176c4f8970f271e698489d9fc7d1da7.tar.bz2 |
Performance tweak: Pass BaseClassList by const reference
Diffstat (limited to 'src/classdef.cpp')
-rw-r--r-- | src/classdef.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/classdef.cpp b/src/classdef.cpp index e797b05e..20ead94 100644 --- a/src/classdef.cpp +++ b/src/classdef.cpp @@ -82,9 +82,9 @@ class ClassDefImpl : public DefinitionImpl, public ClassDef virtual CompoundType compoundType() const; virtual QCString compoundTypeString() const; virtual BaseClassList baseClasses() const; - virtual void updateBaseClasses(BaseClassList bcd); + virtual void updateBaseClasses(const BaseClassList &bcd); virtual BaseClassList subClasses() const; - virtual void updateSubClasses(BaseClassList bcd); + virtual void updateSubClasses(const BaseClassList &bcd); virtual const MemberNameInfoLinkedMap &memberNameInfoLinkedMap() const; virtual Protection protection() const; virtual bool isLinkableInProject() const; @@ -512,8 +512,8 @@ class ClassDefAliasImpl : public DefinitionAliasImpl, public ClassDef virtual void addGroupedInheritedMembers(OutputList &,MemberListType, const ClassDef *,const QCString &) const {} virtual void writeTagFile(FTextStream &) {} - virtual void updateBaseClasses(BaseClassList) {} - virtual void updateSubClasses(BaseClassList) {} + virtual void updateBaseClasses(const BaseClassList &) {} + virtual void updateSubClasses(const BaseClassList &) {} virtual void setVisited(bool visited) const { m_visited = visited; } virtual bool isVisited() const { return m_visited; } @@ -4752,7 +4752,7 @@ BaseClassList ClassDefImpl::baseClasses() const return m_impl->inherits; } -void ClassDefImpl::updateBaseClasses(BaseClassList bcd) +void ClassDefImpl::updateBaseClasses(const BaseClassList &bcd) { m_impl->inherits = bcd; } @@ -4762,7 +4762,7 @@ BaseClassList ClassDefImpl::subClasses() const return m_impl->inheritedBy; } -void ClassDefImpl::updateSubClasses(BaseClassList bcd) +void ClassDefImpl::updateSubClasses(const BaseClassList &bcd) { m_impl->inheritedBy = bcd; } |