aboutsummaryrefslogtreecommitdiff
path: root/include/modules/sql.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-28 21:32:23 +0000
committerGravatar Sadie Powell2026-03-29 00:42:15 +0000
commitcbc5431d62e3fe9166f18395dce3ddf2af0906d3 (patch)
tree48a87fc27dc4826ce0caf4071e2060a9ff9e24c5 /include/modules/sql.h
parentMove service code from base to its own header. (diff)
Switch modules from reference<> to shared_ptr<> and weak_ptr<>.
Diffstat (limited to 'include/modules/sql.h')
-rw-r--r--include/modules/sql.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/modules/sql.h b/include/modules/sql.h
index beb37e233..daac2fd82 100644
--- a/include/modules/sql.h
+++ b/include/modules/sql.h
@@ -171,13 +171,13 @@ class SQL::Query
{
protected:
/** Creates a new SQL query. */
- Query(Module* Creator)
+ Query(const WeakModulePtr& Creator)
: creator(Creator)
{
}
public:
- const reference<Module> creator;
+ const WeakModulePtr creator;
/** Called when an SQL error happens.
* @param error The error that occurred.
@@ -201,7 +201,7 @@ private:
const std::string dbid;
public:
- Provider(Module* Creator, const std::string& Name)
+ Provider(const WeakModulePtr& Creator, const std::string& Name)
: DataProvider(Creator, "SQL::Provider", Name)
, dbid(Name)
{