diff Applications/Samples/LayoutPetCtFusionApplication.h @ 1308:adf234ecaa00 broker

Merge
author Benjamin Golinvaux <bgo@osimis.io>
date Wed, 04 Mar 2020 10:21:54 +0100
parents 8a0a62189f46
children
line wrap: on
line diff
--- a/Applications/Samples/LayoutPetCtFusionApplication.h	Wed Mar 04 10:07:37 2020 +0100
+++ b/Applications/Samples/LayoutPetCtFusionApplication.h	Wed Mar 04 10:21:54 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);