diff options
author | Michi Henning <michi@zeroc.com> | 2002-07-05 05:00:01 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2002-07-05 05:00:01 +0000 |
commit | 50b756249dcb5424ac1e4fbc7bcf36891b905c66 (patch) | |
tree | a6031b00e84066477e07853b3220a7c52d5091fc /cpp/src/Slice/Parser.cpp | |
parent | Fixed bug for the declarations of printDefInt64Macro() and (diff) | |
download | ice-50b756249dcb5424ac1e4fbc7bcf36891b905c66.tar.bz2 ice-50b756249dcb5424ac1e4fbc7bcf36891b905c66.tar.xz ice-50b756249dcb5424ac1e4fbc7bcf36891b905c66.zip |
Tidied up a few TODO items.
Diffstat (limited to 'cpp/src/Slice/Parser.cpp')
-rw-r--r-- | cpp/src/Slice/Parser.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/cpp/src/Slice/Parser.cpp b/cpp/src/Slice/Parser.cpp index b242b354695..99239c6a191 100644 --- a/cpp/src/Slice/Parser.cpp +++ b/cpp/src/Slice/Parser.cpp @@ -1894,8 +1894,6 @@ Slice::ClassDef::createOperation(const string& name, copy(ol.begin(), ol.end(), back_inserter(cl)); DataMemberList dml = (*p)->allDataMembers(); copy(dml.begin(), dml.end(), back_inserter(cl)); - // TODO: once we have constants, append constants to this list - // for checking. for(ContainedList::const_iterator q = cl.begin(); q != cl.end(); ++q) { if((*q)->name() == name) @@ -2029,7 +2027,6 @@ Slice::ClassDef::createDataMember(const string& name, const TypePtr& type) copy(ol.begin(), ol.end(), back_inserter(cl)); DataMemberList dml = (*p)->allDataMembers(); copy(dml.begin(), dml.end(), back_inserter(cl)); - // TODO: once we have constants, append constants to this list for checking. for(ContainedList::const_iterator q = cl.begin(); q != cl.end(); ++q) { if((*q)->name() == name) @@ -2835,13 +2832,14 @@ Slice::ConstDef::value() const Contained::ContainedType Slice::ConstDef::containedType() const { - return ContainedTypeEnumerator; // TODO: Fix this + return ContainedTypeConstant; } bool -Slice::ConstDef::uses(const ContainedPtr&) const +Slice::ConstDef::uses(const ContainedPtr& contained) const { - return false; // TODO: fix this? + ContainedPtr contained2 = ContainedPtr::dynamicCast(_type); + return (contained2 && contained2 == contained); } string |