summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Slice/Parser.cpp')
-rw-r--r--cpp/src/Slice/Parser.cpp9
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();
}
}