Very basics of colour conversion configuration.
[dcpomatic.git] / src / wx / server_dialog.cc
index 0f41b5b90f751b57793622885e5e4752899e7911..a0f1f04aea49098fd53492d270d9f4a452c686cd 100644 (file)
 #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;