Replace wxScopedPtr with std::unique_ptr in the samples too
No real changes, just use the standard class instead of the wx one.
This commit is contained in:
parent
363f0988cf
commit
abb9859b89
7 changed files with 26 additions and 19 deletions
|
|
@ -16,7 +16,6 @@
|
|||
#include "wx/app.h"
|
||||
#include "wx/config.h"
|
||||
#include "wx/panel.h"
|
||||
#include "wx/scopedptr.h"
|
||||
#include "wx/menu.h"
|
||||
#include "wx/checkbox.h"
|
||||
#include "wx/listbox.h"
|
||||
|
|
@ -25,6 +24,8 @@
|
|||
#include "wx/artprov.h"
|
||||
#include "wx/frame.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
// This struct combines the settings edited in the preferences dialog.
|
||||
struct MySettings
|
||||
{
|
||||
|
|
@ -57,7 +58,7 @@ public:
|
|||
|
||||
private:
|
||||
class MyFrame* m_frame;
|
||||
wxScopedPtr<wxPreferencesEditor> m_prefEditor;
|
||||
std::unique_ptr<wxPreferencesEditor> m_prefEditor;
|
||||
MySettings m_settings;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue