summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2006-08-25 19:03:34 +0000
committerMark Spruiell <mes@zeroc.com>2006-08-25 19:03:34 +0000
commit79bc739d2234c3be62c102e6a14ec4f5b87af910 (patch)
tree93b15b303868fff555ee236760c7b13cb8bce809 /cpp/src
parent- Reversing order of comparison for Ice and IceE. (diff)
downloadice-79bc739d2234c3be62c102e6a14ec4f5b87af910.tar.bz2
ice-79bc739d2234c3be62c102e6a14ec4f5b87af910.tar.xz
ice-79bc739d2234c3be62c102e6a14ec4f5b87af910.zip
bug fix for Slice interface/class
Diffstat (limited to 'cpp/src')
-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 d3d66afb40b..d9b4815b098 100644
--- a/cpp/src/Slice/RubyUtil.cpp
+++ b/cpp/src/Slice/RubyUtil.cpp
@@ -179,7 +179,7 @@ Slice::Ruby::CodeVisitor::visitClassDecl(const ClassDeclPtr& p)
if(_classHistory.count(scoped) == 0)
{
string name = "T_" + fixIdent(p->name(), true);
- _out << sp << nl << "if not defined?(" << name << ')';
+ _out << sp << nl << "if not defined?(" << getAbsolute(p, true, "T_") << ')';
_out.inc();
_out << nl << name << " = ::Ice::__declareClass('" << scoped << "')";
if(!p->isLocal())
@@ -519,7 +519,7 @@ Slice::Ruby::CodeVisitor::visitClassDefStart(const ClassDefPtr& p)
//
// Emit type descriptions.
//
- _out << sp << nl << "if not defined?(T_" << name << ')';
+ _out << sp << nl << "if not defined?(" << getAbsolute(p, true, "T_") << ')';
_out.inc();
_out << nl << "T_" << name << " = ::Ice::__declareClass('" << scoped << "')";
if(!p->isLocal())