summaryrefslogtreecommitdiffstats
path: root/src/definition.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-12-24 19:52:54 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-12-24 19:52:54 (GMT)
commit76462e46e09cf3ed528e5d272562adadb05c8e08 (patch)
tree74b9c804cdbc689945d204f1c854e9bfa1ec5c01 /src/definition.cpp
parentfb864720e5a808a6e9052b2cc5a1a942cb7665ab (diff)
downloadDoxygen-76462e46e09cf3ed528e5d272562adadb05c8e08.zip
Doxygen-76462e46e09cf3ed528e5d272562adadb05c8e08.tar.gz
Doxygen-76462e46e09cf3ed528e5d272562adadb05c8e08.tar.bz2
Release-1.3-rc2-20021224
Diffstat (limited to 'src/definition.cpp')
-rw-r--r--src/definition.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/definition.cpp b/src/definition.cpp
index 46d66a9..3f1ff1b 100644
--- a/src/definition.cpp
+++ b/src/definition.cpp
@@ -620,6 +620,28 @@ void Definition::setRefItems(const QList<ListItemInfo> *sli)
}
}
+void Definition::mergeRefItems(Definition *d)
+{
+ if (d->specialListItems())
+ {
+ // deep copy the list
+ if (m_specialListItems==0)
+ {
+ m_specialListItems=new QList<ListItemInfo>;
+ m_specialListItems->setAutoDelete(TRUE);
+ }
+ QListIterator<ListItemInfo> slii(*d->specialListItems());
+ ListItemInfo *lii;
+ for (slii.toFirst();(lii=slii.current());++slii)
+ {
+ if (getSpecialListId(lii->type)==-1)
+ {
+ m_specialListItems->append(new ListItemInfo(*lii));
+ }
+ }
+ }
+}
+
int Definition::getSpecialListId(const char *listName) const
{
if (m_specialListItems)