equal
deleted
inserted
replaced
468 #ifndef LE_ENABLE_RAW |
468 #ifndef LE_ENABLE_RAW |
469 const T *getAliasRAW() const { LE_DEBUG_TR("getAliasRAW<>"); return (const T*)fStart; } |
469 const T *getAliasRAW() const { LE_DEBUG_TR("getAliasRAW<>"); return (const T*)fStart; } |
470 #endif |
470 #endif |
471 |
471 |
472 const T& getObject(le_uint32 i, LEErrorCode &success) const { |
472 const T& getObject(le_uint32 i, LEErrorCode &success) const { |
473 return *getAlias(i,success); |
473 const T *ret = getAlias(i, success); |
|
474 if (LE_FAILURE(success) || ret==NULL) { |
|
475 return *(new T(0)); |
|
476 } else { |
|
477 return *ret; |
|
478 } |
474 } |
479 } |
475 |
480 |
476 /** |
481 /** |
477 * by-value array accessor for integral types. |
482 * by-value array accessor for integral types. |
478 */ |
483 */ |