summaryrefslogtreecommitdiff
path: root/src/wx/server_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-08-16 20:14:33 +0100
committerCarl Hetherington <cth@carlh.net>2013-08-16 21:51:15 +0100
commit74a8d26a8907c6e00e29f054178a3425f44e38ed (patch)
treefd700ba8471edcbd6e9e6481a3ca1397397a2d5d /src/wx/server_dialog.cc
parentc2909b61d360510241ef37abd255269bd8aa9526 (diff)
Very basics of colour conversion configuration.
Diffstat (limited to 'src/wx/server_dialog.cc')
-rw-r--r--src/wx/server_dialog.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/wx/server_dialog.cc b/src/wx/server_dialog.cc
index 0f41b5b90..a0f1f04ae 100644
--- a/src/wx/server_dialog.cc
+++ b/src/wx/server_dialog.cc
@@ -21,13 +21,15 @@
#include "server_dialog.h"
#include "wx_util.h"
-ServerDialog::ServerDialog (wxWindow* parent, ServerDescription* server)
+using boost::shared_ptr;
+
+ServerDialog::ServerDialog (wxWindow* parent, shared_ptr<ServerDescription> server)
: wxDialog (parent, wxID_ANY, _("Server"))
{
if (server) {
_server = server;
} else {
- _server = new ServerDescription (wx_to_std (N_("localhost")), 1);
+ _server.reset (new ServerDescription (wx_to_std (N_("localhost")), 1));
}
wxFlexGridSizer* table = new wxFlexGridSizer (2, DCPOMATIC_SIZER_X_GAP, DCPOMATIC_SIZER_Y_GAP);
@@ -73,7 +75,7 @@ ServerDialog::threads_changed ()
_server->set_threads (_threads->GetValue ());
}
-ServerDescription *
+shared_ptr<ServerDescription>
ServerDialog::server () const
{
return _server;