diff options
author | Michi Henning <michi@zeroc.com> | 2004-10-27 03:23:42 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2004-10-27 03:23:42 +0000 |
commit | 0770a34e5ae37938a6dce437a112784867d747b7 (patch) | |
tree | b109a0851f148d6beaa5e8411e80e17f15045beb /cpp/include/Slice/CsUtil.h | |
parent | fixes for glacier2 change (diff) | |
download | ice-0770a34e5ae37938a6dce437a112784867d747b7.tar.bz2 ice-0770a34e5ae37938a6dce437a112784867d747b7.tar.xz ice-0770a34e5ae37938a6dce437a112784867d747b7.zip |
- Fixed a bug in slice2cs: the generated code was incorrect for
dictionaries with sequence value types, if that sequence value type was
mapped to an array.
Diffstat (limited to 'cpp/include/Slice/CsUtil.h')
-rw-r--r-- | cpp/include/Slice/CsUtil.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/include/Slice/CsUtil.h b/cpp/include/Slice/CsUtil.h index 259080b2d20..e527d8d140a 100644 --- a/cpp/include/Slice/CsUtil.h +++ b/cpp/include/Slice/CsUtil.h @@ -23,6 +23,11 @@ public: virtual ~CsGenerator() {}; // + // Convert a dimension-less array declaration to one with a dimension. + // + static std::string toArrayAlloc(const std::string& decl, const std::string& sz); + + // // Validate all metadata in the unit with a "cs:" prefix. // static void validateMetaData(const UnitPtr&); @@ -31,6 +36,7 @@ protected: static std::string fixId(const std::string&, int = 0, bool = false); static std::string typeToString(const TypePtr&); static bool isValueType(const TypePtr&); + // // Generate code to marshal or unmarshal a type // |