X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Fidatabase.h;h=1696b9ccc5e159f0a7f6b93c748710327557571a;hb=ed0732b2550c23c05fc9faf925620e87ee6dee12;hp=ddf9ba946223875f77ad05605c0e71aa9f5315b5;hpb=c7fcb4c4bc5012a584add81a9509fc1f84c3c688;p=fms.git diff --git a/include/idatabase.h b/include/idatabase.h index ddf9ba9..1696b9c 100644 --- a/include/idatabase.h +++ b/include/idatabase.h @@ -9,7 +9,9 @@ class IDatabase { public: - IDatabase():m_db(SQLite3DB::DB::Instance()) {} + IDatabase(SQLite3DB::DB *db):m_db(db) {} + + void SetDB(SQLite3DB::DB *db) { m_db=db; } protected: SQLite3DB::DB *m_db;