diff options
author | Benoit Foucher <benoit@zeroc.com> | 2016-08-25 14:17:14 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2016-08-25 14:17:14 +0200 |
commit | 4ae44bb4c85efd2a78817a784312923ef3552a6a (patch) | |
tree | 35963a807c8d3efc50f5ffc6ce0cfff4da590393 /cpp/src/slice2java/Gen.cpp | |
parent | Added GenCompat.cpp to slice2java Windows project (diff) | |
download | ice-4ae44bb4c85efd2a78817a784312923ef3552a6a.tar.bz2 ice-4ae44bb4c85efd2a78817a784312923ef3552a6a.tar.xz ice-4ae44bb4c85efd2a78817a784312923ef3552a6a.zip |
Fixed slice2java compilation failure
Diffstat (limited to 'cpp/src/slice2java/Gen.cpp')
-rw-r--r-- | cpp/src/slice2java/Gen.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp index 8b0b07934c0..795fcb81467 100644 --- a/cpp/src/slice2java/Gen.cpp +++ b/cpp/src/slice2java/Gen.cpp @@ -987,8 +987,10 @@ Slice::JavaVisitor::writeDispatch(Output& out, const ClassDefPtr& p) other.sort(); ids.merge(other); ids.unique(); +#ifndef NDEBUG StringList::const_iterator scopedIter = find(ids.begin(), ids.end(), scoped); assert(scopedIter != ids.end()); +#endif out << sp << nl << "static final String[] __ids ="; out << sb; |