Mercurial > hg > orthanc-stone
diff Applications/Generic/NativeStoneApplicationContext.h @ 418:c23df8b3433b
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 15 Nov 2018 18:32:48 +0100 |
parents | 6cc3ce74dc05 |
children | 8999823db8b8 b70e9be013e4 |
line wrap: on
line diff
--- a/Applications/Generic/NativeStoneApplicationContext.h Thu Nov 15 17:28:15 2018 +0100 +++ b/Applications/Generic/NativeStoneApplicationContext.h Thu Nov 15 18:32:48 2018 +0100 @@ -37,7 +37,6 @@ static void UpdateThread(NativeStoneApplicationContext* that); boost::mutex globalMutex_; - MessageBroker& broker_; WidgetViewport centralViewport_; boost::thread updateThread_; bool stopped_; @@ -59,11 +58,6 @@ IWidget& SetCentralWidget(IWidget* widget); // Takes ownership - MessageBroker& GetMessageBroker() const - { - return that_.broker_; - } - IViewport& GetCentralViewport() { return that_.centralViewport_; @@ -73,6 +67,11 @@ { that_.updateDelayInMs_ = delayInMs; } + + MessageBroker& GetMessageBroker() + { + return that_.GetMessageBroker(); + } }; NativeStoneApplicationContext(MessageBroker& broker);