summaryrefslogtreecommitdiff
path: root/rb/src/IceRuby/Proxy.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2013-06-04 11:07:46 +0200
committerBenoit Foucher <benoit@zeroc.com>2013-06-04 11:07:46 +0200
commitc1c2243e742ecd94bc0c634b14a93261170a24e3 (patch)
treeed2c11eb485f2716318b43959e7ea64197fe3cd7 /rb/src/IceRuby/Proxy.cpp
parentFixed (ICE-5345) - IcePHP fails to build with GCC 4.7 (diff)
downloadice-c1c2243e742ecd94bc0c634b14a93261170a24e3.tar.bz2
ice-c1c2243e742ecd94bc0c634b14a93261170a24e3.tar.xz
ice-c1c2243e742ecd94bc0c634b14a93261170a24e3.zip
Added __hash proxy method to get around deprecation messages when using ice_getHash, fixed identation
Diffstat (limited to 'rb/src/IceRuby/Proxy.cpp')
-rw-r--r--rb/src/IceRuby/Proxy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/rb/src/IceRuby/Proxy.cpp b/rb/src/IceRuby/Proxy.cpp
index 015f1fbcda7..f46be805982 100644
--- a/rb/src/IceRuby/Proxy.cpp
+++ b/rb/src/IceRuby/Proxy.cpp
@@ -80,7 +80,7 @@ IceRuby_ObjectPrx_ice_getHash(VALUE self)
ICE_RUBY_TRY
{
Ice::ObjectPrx p = getProxy(self);
- return INT2FIX(p->ice_getHash());
+ return INT2FIX(p->__hash());
}
ICE_RUBY_CATCH
return Qnil;
@@ -93,7 +93,7 @@ IceRuby_ObjectPrx_hash(VALUE self)
ICE_RUBY_TRY
{
Ice::ObjectPrx p = getProxy(self);
- return INT2FIX(p->ice_getHash());
+ return INT2FIX(p->__hash());
}
ICE_RUBY_CATCH
return Qnil;