comparison Framework/Scene2DViewport/CreateLineMeasureTracker.cpp @ 818:e42b491f1fb2

Removed typedefs to shared_ptr by making them explicit. Removed using namespace directives to make usage more explicit, too.
author Benjamin Golinvaux <bgo@osimis.io>
date Wed, 29 May 2019 10:51:28 +0200
parents 8e31b174ab26
children 0aff28f15ea2
comparison
equal deleted inserted replaced
817:68f888812af4 818:e42b491f1fb2
23 23
24 namespace OrthancStone 24 namespace OrthancStone
25 { 25 {
26 CreateLineMeasureTracker::CreateLineMeasureTracker( 26 CreateLineMeasureTracker::CreateLineMeasureTracker(
27 MessageBroker& broker, 27 MessageBroker& broker,
28 ViewportControllerWPtr controllerW, 28 boost::weak_ptr<ViewportController> controllerW,
29 const PointerEvent& e) 29 const PointerEvent& e)
30 : CreateMeasureTracker(controllerW) 30 : CreateMeasureTracker(controllerW)
31 { 31 {
32 command_.reset( 32 command_.reset(
33 new CreateLineMeasureCommand( 33 new CreateLineMeasureCommand(
78 { 78 {
79 LOG(WARNING) << "Additional touches (fingers, pen, mouse buttons...) " 79 LOG(WARNING) << "Additional touches (fingers, pen, mouse buttons...) "
80 "are ignored when the line measure creation tracker is active"; 80 "are ignored when the line measure creation tracker is active";
81 } 81 }
82 82
83 CreateLineMeasureCommandPtr CreateLineMeasureTracker::GetCommand() 83 boost::shared_ptr<CreateLineMeasureCommand> CreateLineMeasureTracker::GetCommand()
84 { 84 {
85 return boost::dynamic_pointer_cast<CreateLineMeasureCommand>(command_); 85 return boost::dynamic_pointer_cast<CreateLineMeasureCommand>(command_);
86 } 86 }
87 87
88 } 88 }