From 0dd77f75ece3d3cfe69c7eb73d2bd161842f2f53 Mon Sep 17 00:00:00 2001 From: Marc Laukien Date: Mon, 13 May 2002 16:57:43 +0000 Subject: fix --- cpp/src/slice2cpp/Gen.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/src/slice2cpp/Gen.cpp') diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 679fa5ce774..3291133b600 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -597,7 +597,8 @@ Slice::Gen::TypesVisitor::visitSequence(const SequencePtr& p) H << sp << nl << "typedef ::std::vector<" << s << "> " << name << ';'; BuiltinPtr builtin = BuiltinPtr::dynamicCast(type); - if (!builtin && !p->isLocal()) + if (!p->isLocal() && + (!builtin || builtin->kind() == Builtin::KindObject || builtin->kind() == Builtin::KindObjectProxy)) { string scoped = p->scoped(); string scope = p->scope(); -- cgit v1.2.3