summaryrefslogtreecommitdiff
path: root/cpp/include/Ice/Handle.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/Ice/Handle.h')
-rw-r--r--cpp/include/Ice/Handle.h24
1 files changed, 1 insertions, 23 deletions
diff --git a/cpp/include/Ice/Handle.h b/cpp/include/Ice/Handle.h
index e38a02ffb61..1d1703d36c7 100644
--- a/cpp/include/Ice/Handle.h
+++ b/cpp/include/Ice/Handle.h
@@ -7,8 +7,7 @@
//
// **********************************************************************
-#ifndef ICE_HANDLE_H
-#define ICE_HANDLE_H
+#pragma once
#include <IceUtil/Handle.h>
#include <Ice/Config.h>
@@ -36,17 +35,6 @@ template<typename T>
class Handle : public ::IceUtil::HandleBase<T>
{
public:
-
-#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600)
- //
- // C++Builder 2009 does not allow setting Ptr to 0.
- //
- Handle(int p)
- {
- assert(p == 0);
- this->_ptr = 0;
- }
-#endif
Handle(T* p = 0)
{
@@ -183,21 +171,13 @@ public:
template<class Y>
static Handle dynamicCast(const ::IceUtil::HandleBase<Y>& r)
{
-#ifdef __BCPLUSPLUS__
- return Handle<T>(dynamic_cast<T*>(r._ptr));
-#else
return Handle(dynamic_cast<T*>(r._ptr));
-#endif
}
template<class Y>
static Handle dynamicCast(Y* p)
{
-#ifdef __BCPLUSPLUS__
- return Handle<T>(dynamic_cast<T*>(p));
-#else
return Handle(dynamic_cast<T*>(p));
-#endif
}
void __clearHandleUnsafe()
@@ -207,5 +187,3 @@ public:
};
}
-
-#endif