summaryrefslogtreecommitdiff
path: root/cpp/include/Ice/ProxyHandle.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/Ice/ProxyHandle.h')
-rw-r--r--cpp/include/Ice/ProxyHandle.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/include/Ice/ProxyHandle.h b/cpp/include/Ice/ProxyHandle.h
index ea428e7c7e8..4b5e2055f0f 100644
--- a/cpp/include/Ice/ProxyHandle.h
+++ b/cpp/include/Ice/ProxyHandle.h
@@ -168,17 +168,17 @@ public:
template<class Y>
static ProxyHandle checkedCast(const ProxyHandle<Y>& r, const std::string& f = "")
{
- T* p;
- ::IceInternal::checkedCast(r._ptr, f, p);
- return ProxyHandle(p);
+ ProxyHandle p;
+ ::IceInternal::checkedCast(r, f, p);
+ return p;
}
template<class Y>
static ProxyHandle uncheckedCast(const ProxyHandle<Y>& r, const std::string& f = "")
{
- T* p;
- ::IceInternal::uncheckedCast(r._ptr, f, p);
- return ProxyHandle(p);
+ ProxyHandle p;
+ ::IceInternal::uncheckedCast(r, f, p);
+ return p;
}
};