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.h190
1 files changed, 95 insertions, 95 deletions
diff --git a/cpp/include/Ice/ProxyHandle.h b/cpp/include/Ice/ProxyHandle.h
index 6c06e30647b..7229b428bdc 100644
--- a/cpp/include/Ice/ProxyHandle.h
+++ b/cpp/include/Ice/ProxyHandle.h
@@ -110,171 +110,171 @@ public:
ProxyHandle(T* p = 0)
{
- this->_ptr = p;
+ this->_ptr = p;
- if(this->_ptr)
- {
- incRef(this->_ptr);
- }
+ if(this->_ptr)
+ {
+ incRef(this->_ptr);
+ }
}
template<typename Y>
ProxyHandle(const ProxyHandle<Y>& r)
{
- this->_ptr = r._ptr;
+ this->_ptr = r._ptr;
- if(this->_ptr)
- {
- incRef(this->_ptr);
- }
+ if(this->_ptr)
+ {
+ incRef(this->_ptr);
+ }
}
template<typename Y>
ProxyHandle(const ::IceUtil::Handle<Y>& r)
{
- this->_ptr = r._ptr;
+ this->_ptr = r._ptr;
- if(this->_ptr)
- {
- incRef(this->_ptr);
- }
+ if(this->_ptr)
+ {
+ incRef(this->_ptr);
+ }
}
ProxyHandle(const ProxyHandle& r)
{
- this->_ptr = r._ptr;
+ this->_ptr = r._ptr;
- if(this->_ptr)
- {
- incRef(this->_ptr);
- }
+ if(this->_ptr)
+ {
+ incRef(this->_ptr);
+ }
}
~ProxyHandle()
{
- if(this->_ptr)
- {
- decRef(this->_ptr);
- }
+ if(this->_ptr)
+ {
+ decRef(this->_ptr);
+ }
}
ProxyHandle& operator=(T* p)
{
- if(this->_ptr != p)
- {
- if(p)
- {
- incRef(p);
- }
-
- if(this->_ptr)
- {
- decRef(this->_ptr);
- }
-
- this->_ptr = p;
- }
- return *this;
+ if(this->_ptr != p)
+ {
+ if(p)
+ {
+ incRef(p);
+ }
+
+ if(this->_ptr)
+ {
+ decRef(this->_ptr);
+ }
+
+ this->_ptr = p;
+ }
+ return *this;
}
template<typename Y>
ProxyHandle& operator=(const ProxyHandle<Y>& r)
{
- if(this->_ptr != r._ptr)
- {
- if(r._ptr)
- {
- incRef(r._ptr);
- }
-
- if(this->_ptr)
- {
- decRef(this->_ptr);
- }
-
- this->_ptr = r._ptr;
- }
- return *this;
+ if(this->_ptr != r._ptr)
+ {
+ if(r._ptr)
+ {
+ incRef(r._ptr);
+ }
+
+ if(this->_ptr)
+ {
+ decRef(this->_ptr);
+ }
+
+ this->_ptr = r._ptr;
+ }
+ return *this;
}
template<typename Y>
ProxyHandle& operator=(const ::IceUtil::Handle<Y>& r)
{
- if(this->_ptr != r._ptr)
- {
- if(r._ptr)
- {
- incRef(r._ptr);
- }
-
- if(this->_ptr)
- {
- decRef(this->_ptr);
- }
-
- this->_ptr = r._ptr;
- }
- return *this;
+ if(this->_ptr != r._ptr)
+ {
+ if(r._ptr)
+ {
+ incRef(r._ptr);
+ }
+
+ if(this->_ptr)
+ {
+ decRef(this->_ptr);
+ }
+
+ this->_ptr = r._ptr;
+ }
+ return *this;
}
ProxyHandle& operator=(const ProxyHandle& r)
{
- if(this->_ptr != r._ptr)
- {
- if(r._ptr)
- {
- incRef(r._ptr);
- }
-
- if(this->_ptr)
- {
- decRef(this->_ptr);
- }
-
- this->_ptr = r._ptr;
- }
- return *this;
+ if(this->_ptr != r._ptr)
+ {
+ if(r._ptr)
+ {
+ incRef(r._ptr);
+ }
+
+ if(this->_ptr)
+ {
+ decRef(this->_ptr);
+ }
+
+ this->_ptr = r._ptr;
+ }
+ return *this;
}
template<class Y>
static ProxyHandle checkedCast(const ProxyHandle<Y>& r)
{
- Y* tag = 0;
- Ice::Context* ctx = 0;
- return ::IceInternal::checkedCastHelper<T>(r, tag, ctx);
+ Y* tag = 0;
+ Ice::Context* ctx = 0;
+ return ::IceInternal::checkedCastHelper<T>(r, tag, ctx);
}
template<class Y>
static ProxyHandle checkedCast(const ProxyHandle<Y>& r, const std::string& f)
{
- Ice::Context* ctx = 0;
- return ::IceInternal::checkedCastImpl<ProxyHandle>(r, f, ctx);
+ Ice::Context* ctx = 0;
+ return ::IceInternal::checkedCastImpl<ProxyHandle>(r, f, ctx);
}
template<class Y>
static ProxyHandle checkedCast(const ProxyHandle<Y>& r, const ::Ice::Context& ctx)
{
- Y* tag = 0;
- return ::IceInternal::checkedCastHelper<T>(r, tag, &ctx);
+ Y* tag = 0;
+ return ::IceInternal::checkedCastHelper<T>(r, tag, &ctx);
}
template<class Y>
static ProxyHandle checkedCast(const ProxyHandle<Y>& r, const std::string& f, const ::Ice::Context& ctx)
{
- return ::IceInternal::checkedCastImpl<ProxyHandle>(r, f, &ctx);
+ return ::IceInternal::checkedCastImpl<ProxyHandle>(r, f, &ctx);
}
template<class Y>
static ProxyHandle uncheckedCast(const ProxyHandle<Y>& r)
{
- Y* tag = 0;
- return::IceInternal::uncheckedCastHelper<T>(r, tag);
+ Y* tag = 0;
+ return::IceInternal::uncheckedCastHelper<T>(r, tag);
}
template<class Y>
static ProxyHandle uncheckedCast(const ProxyHandle<Y>& r, const std::string& f)
{
- return ::IceInternal::uncheckedCastImpl<ProxyHandle>(r, f);
+ return ::IceInternal::uncheckedCastImpl<ProxyHandle>(r, f);
}
};