From 24229f59f776742f9be003eef80ad843fbdbadf8 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 5 Feb 2022 01:52:23 +0000 Subject: Squash an unnecessary string copy in SQL::Error. --- include/modules/sql.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/modules/sql.h') 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) { -- cgit v1.3.1-10-gc9f91