aboutsummaryrefslogtreecommitdiff
path: root/include/modules/sql.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-10-22 20:45:22 +0100
committerGravatar Sadie Powell2022-10-23 14:51:33 +0100
commit859088dac5b937208c7aff7fd3976bbc63329281 (patch)
tree79b297813d7f2cb13e6967486340912ad72d0477 /include/modules/sql.h
parentAvoid spamming opers with notices when a SQL log provider is down. (diff)
More const correctness.
Diffstat (limited to 'include/modules/sql.h')
-rw-r--r--include/modules/sql.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/modules/sql.h b/include/modules/sql.h
index 2985d1009..2f7557fdd 100644
--- a/include/modules/sql.h
+++ b/include/modules/sql.h
@@ -183,7 +183,7 @@ public:
/** Called when an SQL error happens.
* @param error The error that occurred.
*/
- virtual void OnError(SQL::Error& error) = 0;
+ virtual void OnError(const SQL::Error& error) = 0;
/** Called when a SQL result is received.
* @param result The result of the SQL query.