mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-30 13:04:13 +00:00
use shared_ptr for db
This commit is contained in:
parent
a8df7e1ebe
commit
3e38d69fb7
@ -7,7 +7,7 @@ int main(
|
|||||||
char * argv[]
|
char * argv[]
|
||||||
) {
|
) {
|
||||||
// Init app
|
// Init app
|
||||||
auto app = Gtk::Application::create(
|
const Glib::RefPtr<Gtk::Application> app = Gtk::Application::create(
|
||||||
"io.github.yggverse.Yoda"
|
"io.github.yggverse.Yoda"
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -27,8 +27,10 @@ int main(
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Init profile
|
// Init profile
|
||||||
auto db = lib::Database(
|
const std::shared_ptr<lib::Database> db(
|
||||||
"database.sqlite3"
|
new lib::Database(
|
||||||
|
"database.sqlite3"
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Launch browser component
|
// Launch browser component
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#include <glibmm.h>
|
#include <glibmm.h>
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
int main(
|
int main(
|
||||||
int argc,
|
int argc,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user