aboutsummaryrefslogtreecommitdiff
path: root/include/modules/sql.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-02-05 01:52:23 +0000
committerGravatar Sadie Powell2022-02-05 01:52:45 +0000
commit24229f59f776742f9be003eef80ad843fbdbadf8 (patch)
tree42fe0d946280f00dbdf86c76e2734985eec3d441 /include/modules/sql.h
parentFix various minor Doxygen warnings. (diff)
Squash an unnecessary string copy in SQL::Error.
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 9d43f7a6c..396c32f2c 100644
--- a/include/modules/sql.h
+++ b/include/modules/sql.h
@@ -162,7 +162,7 @@ class SQL::Error
* @param c A code which represents this error.
* @param m A custom error message.
*/
- Error(ErrorCode c, const std::string m)
+ Error(ErrorCode c, const std::string& m)
: message(m)
, code(c)
{