summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
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())