summaryrefslogtreecommitdiffstats
path: root/src/definition.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/definition.h')
-rw-r--r--src/definition.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/definition.h b/src/definition.h
index cf59b0a..bc8c6c7 100644
--- a/src/definition.h
+++ b/src/definition.h
@@ -101,7 +101,11 @@ class Definition
void writeSourceRefs(OutputList &ol,const char *scopeName);
void addSourceReference(MemberDef *d);
- void setRefItems(int todoId,int testId) { m_todoId=todoId; m_testId=testId; }
+ void setRefItems(int todoId,int testId)
+ {
+ if (todoId!=0) m_todoId=todoId;
+ if (testId!=0) m_testId=testId;
+ }
int todoId() const { return m_todoId; }
int testId() const { return m_testId; }