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/context.h | |
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/context.h')
-rw-r--r-- | src/context.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/context.h b/src/context.h index 473c72f..c785664 100644 --- a/src/context.h +++ b/src/context.h @@ -452,7 +452,7 @@ class ClassInheritanceNodeContext : public RefCountedContext, public TemplateStr virtual int addRef() { return RefCountedContext::addRef(); } virtual int release() { return RefCountedContext::release(); } - void addChildren(BaseClassList bcl,bool hideSuper); + void addChildren(const BaseClassList &bcl,bool hideSuper); private: ClassInheritanceNodeContext(const ClassDef *); @@ -550,7 +550,7 @@ class NestingContext : public RefCountedContext, public TemplateListIntf void addModules(const GroupSDict &modules); void addModules(const GroupList &modules); void addClassHierarchy(const ClassSDict &clDict,bool rootOnly); - void addDerivedClasses(BaseClassList bcl,bool hideSuper); + void addDerivedClasses(const BaseClassList &bcl,bool hideSuper); private: NestingContext(const NestingNodeContext *parent,int level); @@ -926,7 +926,7 @@ class InheritanceNodeContext : public RefCountedContext, public TemplateStructIn class InheritanceListContext : public RefCountedContext, public TemplateListIntf { public: - static InheritanceListContext *alloc(BaseClassList list,bool baseClasses) + static InheritanceListContext *alloc(const BaseClassList &list,bool baseClasses) { return new InheritanceListContext(list,baseClasses); } // TemplateListIntf @@ -937,7 +937,7 @@ class InheritanceListContext : public RefCountedContext, public TemplateListIntf virtual int release() { return RefCountedContext::release(); } private: - InheritanceListContext(BaseClassList list,bool baseClasses); + InheritanceListContext(const BaseClassList &list,bool baseClasses); ~InheritanceListContext(); class Private; Private *p; |