Mercurial > hg > orthanc-stone
diff Applications/Samples/LayoutPetCtFusionApplication.h @ 1299:c38c89684d83 broker
replacing std::auto_ptr by std::unique_ptr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 02 Mar 2020 17:21:24 +0100 |
parents | 2d8ab34c8c91 |
children |
line wrap: on
line diff
--- a/Applications/Samples/LayoutPetCtFusionApplication.h Sun Feb 23 15:32:24 2020 +0100 +++ b/Applications/Samples/LayoutPetCtFusionApplication.h Mon Mar 02 17:21:24 2020 +0100 @@ -208,7 +208,7 @@ LayeredSceneWidget* CreateWidget() { - std::auto_ptr<LayeredSceneWidget> widget(new LayeredSceneWidget); + std::unique_ptr<LayeredSceneWidget> widget(new LayeredSceneWidget); widget->Register(dynamic_cast<WorldSceneWidget::IWorldObserver&>(*this)); widget->Register(dynamic_cast<LayeredSceneWidget::ISliceObserver&>(*this)); return widget.release(); @@ -217,7 +217,7 @@ void CreateLayout(BasicApplicationContext& context) { - std::auto_ptr<OrthancStone::LayoutWidget> layout(new OrthancStone::LayoutWidget); + std::unique_ptr<OrthancStone::LayoutWidget> layout(new OrthancStone::LayoutWidget); layout->SetBackgroundCleared(true); //layout->SetBackgroundColor(255,0,0); layout->SetPadding(5);