summaryrefslogtreecommitdiff
path: root/cpp/include/Ice/InterfaceByValue.h
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2015-12-29 15:03:46 +0100
committerJose <jose@zeroc.com>2015-12-29 15:03:46 +0100
commit70ef2c7e0d614e7110d6b27d9186bae9cef89315 (patch)
tree02e56fb82c483ec82d65c9a07b1e81bf31823517 /cpp/include/Ice/InterfaceByValue.h
parentC++11 mapping fixes for IceBox (diff)
downloadice-70ef2c7e0d614e7110d6b27d9186bae9cef89315.tar.bz2
ice-70ef2c7e0d614e7110d6b27d9186bae9cef89315.tar.xz
ice-70ef2c7e0d614e7110d6b27d9186bae9cef89315.zip
C++11 mapping: InterfaceByValue simplification
Diffstat (limited to 'cpp/include/Ice/InterfaceByValue.h')
-rw-r--r--cpp/include/Ice/InterfaceByValue.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/cpp/include/Ice/InterfaceByValue.h b/cpp/include/Ice/InterfaceByValue.h
index b0ba02def8f..3f042bae2c1 100644
--- a/cpp/include/Ice/InterfaceByValue.h
+++ b/cpp/include/Ice/InterfaceByValue.h
@@ -26,7 +26,7 @@ public:
virtual void
__writeImpl(::IceInternal::BasicStream* __os) const
{
- __os->startWriteSlice(InterfaceTraits<T>::staticId, InterfaceTraits<T>::compactId, true);
+ __os->startWriteSlice(T::ice_staticId(), -1, true);
__os->endWriteSlice();
}
@@ -36,17 +36,15 @@ public:
__is->startReadSlice();
__is->endReadSlice();
}
-
- virtual const std::string&
- ice_id() const
+
+ virtual const std::string& ice_id() const
{
- return InterfaceTraits<T>::staticId;
+ return T::ice_staticId();
}
- static const std::string&
- ice_staticId()
+ static const std::string& ice_staticId()
{
- return InterfaceTraits<T>::staticId;
+ return T::ice_staticId();
}
};