diff options
author | Michi Henning <michi@zeroc.com> | 2003-07-01 01:14:54 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2003-07-01 01:14:54 +0000 |
commit | 660d30c0210167646a19c5adf7e9c1bb2075b0df (patch) | |
tree | 82ae953c8d3036ecbad398b65ae9a7814413d6e0 /cpp/src/Slice/Parser.cpp | |
parent | Applied Bernard's review comments. (diff) | |
download | ice-660d30c0210167646a19c5adf7e9c1bb2075b0df.tar.bz2 ice-660d30c0210167646a19c5adf7e9c1bb2075b0df.tar.xz ice-660d30c0210167646a19c5adf7e9c1bb2075b0df.zip |
Fixed incorrect ordering of operation parameters for slice2docbook.
Diffstat (limited to 'cpp/src/Slice/Parser.cpp')
-rw-r--r-- | cpp/src/Slice/Parser.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp/src/Slice/Parser.cpp b/cpp/src/Slice/Parser.cpp index afb68d357ae..3474b03fc79 100644 --- a/cpp/src/Slice/Parser.cpp +++ b/cpp/src/Slice/Parser.cpp @@ -1434,7 +1434,14 @@ Slice::Container::sortContents() ContainerPtr container = ContainerPtr::dynamicCast(*p); if(container) { - container->sort(); + // + // Don't sort operation definitions, otherwise parameters are shown in the + // wrong order in the synopsis. + // + if(!OperationPtr::dynamicCast(container)) + { + container->sort(); + } container->sortContents(); } } |