diff options
author | Mark Spruiell <mes@zeroc.com> | 2006-08-25 19:03:34 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2006-08-25 19:03:34 +0000 |
commit | 79bc739d2234c3be62c102e6a14ec4f5b87af910 (patch) | |
tree | 93b15b303868fff555ee236760c7b13cb8bce809 /cpp/src/Slice/RubyUtil.cpp | |
parent | - Reversing order of comparison for Ice and IceE. (diff) | |
download | ice-79bc739d2234c3be62c102e6a14ec4f5b87af910.tar.bz2 ice-79bc739d2234c3be62c102e6a14ec4f5b87af910.tar.xz ice-79bc739d2234c3be62c102e6a14ec4f5b87af910.zip |
bug fix for Slice interface/class
Diffstat (limited to 'cpp/src/Slice/RubyUtil.cpp')
-rw-r--r-- | cpp/src/Slice/RubyUtil.cpp | 4 |
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()) |