summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/RubyUtil.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2012-12-26 15:16:24 -0800
committerMark Spruiell <mes@zeroc.com>2012-12-26 15:16:24 -0800
commit899c375da6787c33073997eb3722342a0cc971f3 (patch)
tree9f369f06baa9634c88f6c646e9f399ab44d49657 /cpp/src/Slice/RubyUtil.cpp
parentOS X installer updates (diff)
downloadice-899c375da6787c33073997eb3722342a0cc971f3.tar.bz2
ice-899c375da6787c33073997eb3722342a0cc971f3.tar.xz
ice-899c375da6787c33073997eb3722342a0cc971f3.zip
compact ID support for scripting languages
Diffstat (limited to 'cpp/src/Slice/RubyUtil.cpp')
-rw-r--r--cpp/src/Slice/RubyUtil.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Slice/RubyUtil.cpp b/cpp/src/Slice/RubyUtil.cpp
index 558f4d42623..a79c0713502 100644
--- a/cpp/src/Slice/RubyUtil.cpp
+++ b/cpp/src/Slice/RubyUtil.cpp
@@ -605,8 +605,8 @@ Slice::Ruby::CodeVisitor::visitClassDefStart(const ClassDefPtr& p)
bool isAbstract = p->isInterface() || p->allOperations().size() > 0; // Don't use isAbstract() here - see bug 3739
const bool preserved = p->hasMetaData("preserve-slice") || p->inheritsMetaData("preserve-slice");
- _out << sp << nl << "T_" << name << ".defineClass(" << name << ", " << (isAbstract ? "true" : "false") << ", "
- << (preserved ? "true" : "false") << ", ";
+ _out << sp << nl << "T_" << name << ".defineClass(" << name << ", " << p->compactId() << ", "
+ << (isAbstract ? "true" : "false") << ", " << (preserved ? "true" : "false") << ", ";
if(!base)
{
_out << "nil";