diff Framework/Deprecated/Viewport/WidgetViewport.h @ 1069:5d1b0d2f4b15 broker

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 15 Oct 2019 21:11:09 +0200
parents e146743f6cdc
children 0ca50d275b9a
line wrap: on
line diff
--- a/Framework/Deprecated/Viewport/WidgetViewport.h	Tue Oct 15 19:36:57 2019 +0200
+++ b/Framework/Deprecated/Viewport/WidgetViewport.h	Tue Oct 15 21:11:09 2019 +0200
@@ -31,7 +31,7 @@
   class WidgetViewport : public IViewport
   {
   private:
-    std::auto_ptr<IWidget>        centralWidget_;
+    boost::shared_ptr<IWidget>    centralWidget_;
     IStatusBar*                   statusBar_;
     std::auto_ptr<IMouseTracker>  mouseTracker_;
     bool                          isMouseOver_;
@@ -47,7 +47,7 @@
 
     virtual void SetStatusBar(IStatusBar& statusBar);
 
-    IWidget& SetCentralWidget(IWidget* widget);  // Takes ownership
+    void SetCentralWidget(boost::shared_ptr<IWidget> widget);
 
     virtual void NotifyBackgroundChanged();