Mercurial > hg > orthanc-stone
comparison Applications/Samples/SimpleViewerApplication.h @ 268:5bd4161bf11b am-2
removed constness of the observable when emitting a message
author | am@osimis.io |
---|---|
date | Wed, 22 Aug 2018 15:08:15 +0200 |
parents | 89d02de83c03 |
children | 2d64f4d39610 |
comparison
equal
deleted
inserted
replaced
267:89d02de83c03 | 268:5bd4161bf11b |
---|---|
173 //#endif | 173 //#endif |
174 // } | 174 // } |
175 // } | 175 // } |
176 | 176 |
177 | 177 |
178 virtual void HandleMessage(const IObservable& from, const IMessage& message) { | 178 virtual void HandleMessage(IObservable& from, const IMessage& message) { |
179 switch (message.GetType()) { | 179 switch (message.GetType()) { |
180 case MessageType_Widget_GeometryChanged: | 180 case MessageType_Widget_GeometryChanged: |
181 //TODO remove constness !! dynamic_cast<const LayerWidget&>(from).SetDefaultView(); | 181 dynamic_cast<LayerWidget&>(from).SetDefaultView(); |
182 break; | 182 break; |
183 default: | 183 default: |
184 VLOG("unhandled message type" << message.GetType()); | 184 VLOG("unhandled message type" << message.GetType()); |
185 } | 185 } |
186 } | 186 } |