Mercurial > hg > orthanc-stone
comparison Applications/Samples/TestPatternApplication.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 |
comparison
equal
deleted
inserted
replaced
1297:6ab03e429f06 | 1299:c38c89684d83 |
---|---|
47 virtual void Initialize(IStatusBar& statusBar, | 47 virtual void Initialize(IStatusBar& statusBar, |
48 const boost::program_options::variables_map& parameters) | 48 const boost::program_options::variables_map& parameters) |
49 { | 49 { |
50 using namespace OrthancStone; | 50 using namespace OrthancStone; |
51 | 51 |
52 std::auto_ptr<LayoutWidget> layout(new LayoutWidget); | 52 std::unique_ptr<LayoutWidget> layout(new LayoutWidget); |
53 layout->SetPadding(10); | 53 layout->SetPadding(10); |
54 layout->SetBackgroundCleared(true); | 54 layout->SetBackgroundCleared(true); |
55 layout->AddWidget(new TestCairoWidget(parameters["animate"].as<bool>())); | 55 layout->AddWidget(new TestCairoWidget(parameters["animate"].as<bool>())); |
56 layout->AddWidget(new TestWorldSceneWidget(parameters["animate"].as<bool>())); | 56 layout->AddWidget(new TestWorldSceneWidget(parameters["animate"].as<bool>())); |
57 | 57 |