From 2aa6ff8d7d0b7facdfb78d124ca3ebfd07550346 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Fri, 22 Feb 2008 00:12:47 +0100 Subject: [PATCH] invoke getters on tid temp variable to allow proper iteration over tid list. --- src/core/object.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/object.cc b/src/core/object.cc index 901abe640..d164ca675 100644 --- a/src/core/object.cc +++ b/src/core/object.cc @@ -498,13 +498,13 @@ TypeId::LookupAttributeByName (std::string name, struct TypeId::AttributeInfo *i TypeId nextTid = *this; do { tid = nextTid; - for (uint32_t i = 0; i < GetAttributeListN (); i++) + for (uint32_t i = 0; i < tid.GetAttributeListN (); i++) { - std::string paramName = GetAttributeName (i); + std::string paramName = tid.GetAttributeName (i); if (paramName == name) { - info->accessor = GetAttributeAccessor (i); - info->flags = GetAttributeFlags (i); + info->accessor = tid.GetAttributeAccessor (i); + info->flags = tid.GetAttributeFlags (i); info->initialValue = tid.GetAttributeInitialValue (i); info->checker = tid.GetAttributeChecker (i); return true;