Mercurial > hg > orthanc-stone
diff Framework/Deprecated/Widgets/LayoutWidget.cpp @ 1070:d7887f88710f broker
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 15 Oct 2019 21:28:46 +0200 |
parents | c35e98d22764 |
children | 0ca50d275b9a |
line wrap: on
line diff
--- a/Framework/Deprecated/Widgets/LayoutWidget.cpp Tue Oct 15 21:11:09 2019 +0200 +++ b/Framework/Deprecated/Widgets/LayoutWidget.cpp Tue Oct 15 21:28:46 2019 +0200 @@ -85,14 +85,14 @@ class LayoutWidget::ChildWidget : public boost::noncopyable { private: - std::auto_ptr<IWidget> widget_; + boost::shared_ptr<IWidget> widget_; int left_; int top_; unsigned int width_; unsigned int height_; public: - ChildWidget(IWidget* widget) : + ChildWidget(boost::shared_ptr<IWidget> widget) : widget_(widget) { assert(widget != NULL); @@ -354,7 +354,7 @@ } - IWidget& LayoutWidget::AddWidget(IWidget* widget) // Takes ownership + void LayoutWidget::AddWidget(boost::shared_ptr<IWidget> widget) // Takes ownership { if (widget == NULL) { @@ -375,8 +375,6 @@ { hasAnimation_ = true; } - - return *widget; }