Ignore:
Timestamp:
03/13/14 01:00:33 (10 years ago)
Author:
sz
Message:

getObjectTarget is now the recommended way to retrieve object from ExtValue?, can post the standard warning message about missing object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/vm/classes/collectionobj.cpp

    r164 r171  
    266266}
    267267
    268 VectorObject* VectorObject::fromObject(const ExtObject& o)
    269 {
    270 return (VectorObject*)o.getTarget(par.getName());
     268VectorObject* VectorObject::fromObject(const ExtObject& o, bool warn)
     269{
     270return (VectorObject*)o.getTarget(par.getName(),true,warn);
    271271}
    272272
     
    424424}
    425425
    426 DictionaryObject* DictionaryObject::fromObject(const ExtObject& o)
    427 {
    428 return (DictionaryObject*)o.getTarget(par.getName());
     426DictionaryObject* DictionaryObject::fromObject(const ExtObject& o, bool warn)
     427{
     428return (DictionaryObject*)o.getTarget(par.getName(), true, warn);
    429429}
    430430
Note: See TracChangeset for help on using the changeset viewer.