summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cppe/Gen.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-02-03 14:32:22 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-02-03 14:32:22 +0000
commitd78a0e86911b1db8a9f395559e76f30d58784aa5 (patch)
tree708a9ee09e0f16b870f44e37a9a0c62b42a0fcda /cpp/src/slice2cppe/Gen.cpp
parentupdates (diff)
downloadice-d78a0e86911b1db8a9f395559e76f30d58784aa5.tar.bz2
ice-d78a0e86911b1db8a9f395559e76f30d58784aa5.tar.xz
ice-d78a0e86911b1db8a9f395559e76f30d58784aa5.zip
Added support for cpp:range:type
Diffstat (limited to 'cpp/src/slice2cppe/Gen.cpp')
-rw-r--r--cpp/src/slice2cppe/Gen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/slice2cppe/Gen.cpp b/cpp/src/slice2cppe/Gen.cpp
index 91743d8c89f..de880d6f56d 100644
--- a/cpp/src/slice2cppe/Gen.cpp
+++ b/cpp/src/slice2cppe/Gen.cpp
@@ -772,8 +772,8 @@ Slice::Gen::TypesVisitor::visitSequence(const SequencePtr& p)
TypePtr type = p->type();
string s = typeToString(type);
StringList metaData = p->getMetaData();
- string seqType = findMetaData(metaData);
- if(!seqType.empty() && seqType != "array" && seqType.find("range") != 0)
+ string seqType = findMetaData(metaData, false);
+ if(!seqType.empty())
{
H << sp << nl << "typedef " << seqType << ' ' << name << ';';
}
@@ -790,7 +790,7 @@ Slice::Gen::TypesVisitor::visitSequence(const SequencePtr& p)
H << sp << nl << "class __U__" << name << " { };";
- if(!seqType.empty() && seqType != "array" && seqType.find("range") != 0)
+ if(!seqType.empty())
{
H << nl << _dllExport << "void __write(::IceInternal::BasicStream*, const " << name << "&, __U__"
<< name << ");";