Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/Scene2DViewport/MeasureTool.h @ 1791:9b650ab68d4c
replaced unneeded use of boost::share_ptr for MeasureCommand mementos by std::unique_ptr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 17 May 2021 16:11:17 +0200 |
parents | 462d7a0e064e |
children | 3889ae96d2e9 |
line wrap: on
line diff
--- a/OrthancStone/Sources/Scene2DViewport/MeasureTool.h Mon May 17 13:57:25 2021 +0200 +++ b/OrthancStone/Sources/Scene2DViewport/MeasureTool.h Mon May 17 16:11:17 2021 +0200 @@ -124,13 +124,13 @@ This method must return a memento the captures the tool state (not including the highlighting state */ - virtual boost::shared_ptr<MeasureToolMemento> GetMemento() const = 0; + virtual MeasureToolMemento* CreateMemento() const = 0; /** This method must apply the supplied memento (this requires RTTI to check the type) */ - virtual void SetMemento(boost::shared_ptr<MeasureToolMemento>) = 0; + virtual void SetMemento(const MeasureToolMemento& memento) = 0; /** This must create an edition tracker suitable for the supplied click position,