From af76b9a0ae58dc8c87548053a5bc310ad6be25ce Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Fri, 1 Nov 2024 21:33:27 +0100 Subject: more small tweaks --- frontend/DB.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'frontend/DB.h') diff --git a/frontend/DB.h b/frontend/DB.h index 2746e09..e3abfbf 100644 --- a/frontend/DB.h +++ b/frontend/DB.h @@ -54,7 +54,7 @@ class DBStatement { friend class DBQueryRowRange; public: - DBStatement(DB &, const std::string & query); + DBStatement(const DB &, const std::string & query); public: DBStatement & reset(); @@ -68,7 +68,7 @@ public: private: std::unique_ptr> stmt; int param_index = 1; - DB & parent; + const DB & parent; }; class DB { @@ -76,7 +76,7 @@ class DB { public: DB(const std::string & path); - DBStatement prepare(const std::string & query); + DBStatement prepare(const std::string & query) const; private: std::unique_ptr> db = NULL; -- cgit v1.2.3