diff --git a/src/main.cpp b/src/main.cpp index 2f8d2760..02c9d2e7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -7,7 +7,7 @@ int main( char * argv[] ) { // Init app - auto app = Gtk::Application::create( + const Glib::RefPtr app = Gtk::Application::create( "io.github.yggverse.Yoda" ); @@ -27,8 +27,10 @@ int main( ); // Init profile - auto db = lib::Database( - "database.sqlite3" + const std::shared_ptr db( + new lib::Database( + "database.sqlite3" + ) ); // Launch browser component diff --git a/src/main.hpp b/src/main.hpp index 45c4de41..ea24d3c3 100644 --- a/src/main.hpp +++ b/src/main.hpp @@ -1,4 +1,5 @@ #include +#include int main( int argc,