version 1.64, 2005/12/02 18:25:52
|
version 1.65, 2005/12/07 21:11:35
|
|
|
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
if (!_rep->isNull) | if (!_rep->isNull) |
|
// We have to clone our own unique copy since we are about to |
|
// return an object to the caller that he can modify; thereby, |
|
// changing the one we refer to as well. |
x = CIMValueType<CIMObject>::ref(_rep).clone(); | x = CIMValueType<CIMObject>::ref(_rep).clone(); |
} | } |
| |
|
|
| |
if (!_rep->isNull) | if (!_rep->isNull) |
{ | { |
if (_rep->refs.get() != 1) |
x.clear(); |
{ |
|
// We have to make our own unique copy since we are about to |
// We have to clone our own unique copy since we are about to |
// return an object to the caller that he can modify; thereby, | // return an object to the caller that he can modify; thereby, |
// changing the one we refer to as well. | // changing the one we refer to as well. |
Array<CIMObject> tmp = CIMValueType<CIMObject>::aref(_rep); |
for (Uint32 i = 0, n = CIMValueType<CIMObject>::arraySize(_rep); i < n; i++) |
((CIMValue*)this)->set(tmp); |
{ |
|
x.append(CIMValueType<CIMObject>::aref(_rep)[i].clone()); |
} | } |
|
|
x = CIMValueType<CIMObject>::aref(_rep); |
|
} | } |
} | } |
| |