summaryrefslogtreecommitdiff
path: root/cpp/include
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include')
-rw-r--r--cpp/include/Ice/Handle.h4
-rw-r--r--cpp/include/Ice/ProxyHandle.h4
-rw-r--r--cpp/include/IceUtil/Handle.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/cpp/include/Ice/Handle.h b/cpp/include/Ice/Handle.h
index 60b83d191fc..71bf7dbae4e 100644
--- a/cpp/include/Ice/Handle.h
+++ b/cpp/include/Ice/Handle.h
@@ -173,7 +173,7 @@ template<typename T, typename U>
inline bool operator==(const Handle<T>& a, const Handle<U>& b)
{
T* ap = a.get();
- T* bp = b.get();
+ U* bp = b.get();
if (ap == bp)
{
return true;
@@ -193,7 +193,7 @@ template<typename T, typename U>
inline bool operator<(const Handle<T>& a, const Handle<U>& b)
{
T* ap = a.get();
- T* bp = b.get();
+ U* bp = b.get();
if (!ap || !bp)
{
if (!ap && bp)
diff --git a/cpp/include/Ice/ProxyHandle.h b/cpp/include/Ice/ProxyHandle.h
index 8b9ab8f54e0..5a9d0069bef 100644
--- a/cpp/include/Ice/ProxyHandle.h
+++ b/cpp/include/Ice/ProxyHandle.h
@@ -149,7 +149,7 @@ template<typename T, typename U>
inline bool operator==(const ProxyHandle<T>& a, const ProxyHandle<U>& b)
{
T* ap = a.get();
- T* bp = b.get();
+ U* bp = b.get();
if (ap == bp)
{
return true;
@@ -169,7 +169,7 @@ template<typename T, typename U>
inline bool operator<(const ProxyHandle<T>& a, const ProxyHandle<U>& b)
{
T* ap = a.get();
- T* bp = b.get();
+ U* bp = b.get();
if (!ap || !bp)
{
if (!ap && bp)
diff --git a/cpp/include/IceUtil/Handle.h b/cpp/include/IceUtil/Handle.h
index 5d9c91393d5..272cc5baef3 100644
--- a/cpp/include/IceUtil/Handle.h
+++ b/cpp/include/IceUtil/Handle.h
@@ -165,7 +165,7 @@ template<typename T, typename U>
inline bool operator==(const Handle<T>& a, const Handle<U>& b)
{
T* ap = a.get();
- T* bp = b.get();
+ U* bp = b.get();
if (ap == bp)
{
return true;
@@ -185,7 +185,7 @@ template<typename T, typename U>
inline bool operator<(const Handle<T>& a, const Handle<U>& b)
{
T* ap = a.get();
- T* bp = b.get();
+ U* bp = b.get();
if (!ap || !bp)
{
if (!ap && bp)