Просмотр исходного кода

Fixes #3963. post_event() is now protected and forwards to post_event_impl(), which unfortunately must remain public. So, client code can still abuse the class by calling post_event_impl(), but the abuse should now be more obvious. I considered adding an assert to post_event_impl(), so that unauthorized calls from the outside could at least be detected at runtime, but it turned out that an assert requires more additional machinery than expected, which is why it was not implemented.

Thanks for the report!

[SVN r61048]
Andreas Huber 16 лет назад
Родитель
Сommit
bf4b1e4cdc
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      libs/statechart

+ 1 - 1
libs/statechart

@@ -1 +1 @@
-Subproject commit 8080bd73a9ce64a9c5651e289214e85e2643e31f
+Subproject commit 0dcb457323e47c56c6e5f0432f7b93b02b9c0ab0

粤ICP备19079148号