diff options
author | Renato Filho <renato.filho@openbossa.org> | 2010-04-20 19:56:45 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2010-04-22 18:20:04 -0300 |
commit | b24af354ea6f05253150179467aa77e7c999611e (patch) | |
tree | de838af180926b7bdfd9e912d515842410b06491 /tests/libsample | |
parent | f0f1aa01139a073430eb2c5feb767dedc45d3b4f (diff) |
Fixed argument policy propagate.
Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>,
Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/libsample')
-rw-r--r-- | tests/libsample/objecttype.h | 2 | ||||
-rw-r--r-- | tests/libsample/objecttypelayout.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/libsample/objecttype.h b/tests/libsample/objecttype.h index b606dd818..0515ecc98 100644 --- a/tests/libsample/objecttype.h +++ b/tests/libsample/objecttype.h @@ -75,7 +75,7 @@ public: void killChild(const Str& name); void removeChild(ObjectType* child); ObjectType* takeChild(ObjectType* child); - ObjectType* takeChild(const Str& name); + virtual ObjectType* takeChild(const Str& name); ObjectType* findChild(const Str& name); Str objectName() const; diff --git a/tests/libsample/objecttypelayout.h b/tests/libsample/objecttypelayout.h index 5662ac339..1f05b7495 100644 --- a/tests/libsample/objecttypelayout.h +++ b/tests/libsample/objecttypelayout.h @@ -49,6 +49,8 @@ public: virtual bool isLayoutType() { return true; } static ObjectTypeLayout* create() { return new ObjectTypeLayout(); } + + virtual ObjectType* takeChild(const Str& name) { return ObjectType::takeChild(name); } private: std::list<ObjectType*> m_objects; |