[smart_ptr] Don't reinvent the wheel. Leverage std::unique_ptr<>.
[profile/ivi/settings-daemon.git] / src / daemon.cpp
index 18cf872..071d596 100644 (file)
@@ -29,7 +29,7 @@
 #include "websocket_server.hpp"
 
 #include <settingsd/glib_traits.hpp>
-#include <settingsd/smart_ptr.hpp>
+#include <settingsd/unique_ptr.hpp>
 
 #include <glib.h>
 #include <iostream>
@@ -59,7 +59,7 @@ main(int argc, char * argv[])
 
     // Glib related events, including GDbus related signal handlers,
     // will handled in this (main) thread.
-    settings::smart_ptr<GMainLoop> const loop(g_main_loop_new(nullptr, false));
+    settings::unique_ptr<GMainLoop> const loop(g_main_loop_new(nullptr, false));
     g_main_loop_run(loop.get());
   }
   catch (std::exception & e) {