diff options
Diffstat (limited to 'matlab/src/IceMatlab/ObjectPrx.cpp')
-rw-r--r-- | matlab/src/IceMatlab/ObjectPrx.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/matlab/src/IceMatlab/ObjectPrx.cpp b/matlab/src/IceMatlab/ObjectPrx.cpp index 11242b88ca2..8ce5a98f9b8 100644 --- a/matlab/src/IceMatlab/ObjectPrx.cpp +++ b/matlab/src/IceMatlab/ObjectPrx.cpp @@ -234,16 +234,16 @@ Ice_ObjectPrx__release(void* self) } EXPORTED_FUNCTION mxArray* -Ice_ObjectPrx_equals(void* self, void* other, unsigned char* r) +Ice_ObjectPrx_equals(void* self, void* other) { assert(other); // Wrapper only calls this function for non-nil arguments. try { - *r = Ice::targetEqualTo(SELF, DEREF(other)) ? 1 : 0; + return createResultValue(createBool(Ice::targetEqualTo(SELF, DEREF(other)))); } catch(const std::exception& ex) { - return convertException(ex); + return createResultException(convertException(ex)); } return 0; } |