database: Add missing virtual destructors for some classes
这个提交包含在:
父节点
7ef9d7f020
当前提交
ef8eebdbaa
@ -15,6 +15,7 @@ class CategoryDao
|
|||||||
virtual std::optional<Category> find(std::string name) = 0;
|
virtual std::optional<Category> find(std::string name) = 0;
|
||||||
virtual void deleteCategory(std::string name) = 0;
|
virtual void deleteCategory(std::string name) = 0;
|
||||||
virtual std::vector<Page> fetchMembers(std::string name, QueryOption o) = 0;
|
virtual std::vector<Page> fetchMembers(std::string name, QueryOption o) = 0;
|
||||||
|
virtual ~CategoryDao() = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CATEGORYDAO_H
|
#endif // CATEGORYDAO_H
|
||||||
|
@ -9,6 +9,7 @@ class PermissionsDao
|
|||||||
PermissionsDao();
|
PermissionsDao();
|
||||||
virtual std::optional<Permissions> find(std::string pagename, std::string username) = 0;
|
virtual std::optional<Permissions> find(std::string pagename, std::string username) = 0;
|
||||||
virtual void save(std::string pagename, std::string username, Permissions perms) = 0;
|
virtual void save(std::string pagename, std::string username, Permissions perms) = 0;
|
||||||
|
virtual ~PermissionsDao() = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // PERMISSIONSDAO_H
|
#endif // PERMISSIONSDAO_H
|
||||||
|
@ -37,6 +37,8 @@ class SqliteDao
|
|||||||
|
|
||||||
bool execBool(sqlite::database_binder &binder) const;
|
bool execBool(sqlite::database_binder &binder) const;
|
||||||
int execInt(sqlite::database_binder &binder) const;
|
int execInt(sqlite::database_binder &binder) const;
|
||||||
|
|
||||||
|
virtual ~SqliteDao() = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // SQLITEDAO_H
|
#endif // SQLITEDAO_H
|
||||||
|
正在加载...
x
在新工单中引用
屏蔽一个用户