diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-02-01 20:27:43 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-02-01 20:27:43 +0000 |
commit | 22ad68f0f60ab059d504fd47e6df5725289f6b47 (patch) | |
tree | 912fa3d23e2905ca968752740cadc8d324c4a328 /cpp/src/Slice/CPlusPlusUtil.cpp | |
parent | Fixed substr error (diff) | |
download | ice-22ad68f0f60ab059d504fd47e6df5725289f6b47.tar.bz2 ice-22ad68f0f60ab059d504fd47e6df5725289f6b47.tar.xz ice-22ad68f0f60ab059d504fd47e6df5725289f6b47.zip |
More minor fixes
Diffstat (limited to 'cpp/src/Slice/CPlusPlusUtil.cpp')
-rw-r--r-- | cpp/src/Slice/CPlusPlusUtil.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Slice/CPlusPlusUtil.cpp b/cpp/src/Slice/CPlusPlusUtil.cpp index 347e95afa34..7837cce0260 100644 --- a/cpp/src/Slice/CPlusPlusUtil.cpp +++ b/cpp/src/Slice/CPlusPlusUtil.cpp @@ -860,11 +860,11 @@ Slice::writeMarshalUnmarshalCode(Output& out, const TypePtr& type, const string& string tmpParam = "__"; if(fixedParam.find("(*") == 0) { - tmpParam += fixedParam.substr(2, fixedParam.size() - 3); + tmpParam += fixedParam.substr(2, fixedParam.length() - 2); } else if(fixedParam.find("[i]") != string::npos) { - tmpParam += fixedParam.substr(0, fixedParam.find("[i]")); + tmpParam += fixedParam.substr(0, fixedParam.length() - 3); } else { |