From ba2c82e2f53bee8db583a54b0020ac3620a32d9c Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 3 Jan 2022 19:33:21 +0000 Subject: Fix some minor issues discovered whilst working on 2.1. --- include/anope.h | 3 +++ include/modules/sql.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/anope.h b/include/anope.h index fe2b96a42..ccffa8c6c 100644 --- a/include/anope.h +++ b/include/anope.h @@ -54,6 +54,9 @@ namespace Anope string(const ci::string &_str) : _string(_str.c_str()) { } string(const string &_str, size_type pos, size_type n = npos) : _string(_str._string, pos, n) { } template string(InputIterator first, InputIterator last) : _string(first, last) { } +#if __cplusplus >= 201103L + string(const string &) = default; +#endif /** * Assignment operators, so any type of string can be assigned to this class. diff --git a/include/modules/sql.h b/include/modules/sql.h index e2e01e20e..c9849a8a5 100644 --- a/include/modules/sql.h +++ b/include/modules/sql.h @@ -149,7 +149,7 @@ namespace SQL inline operator bool() const { return this->error.empty(); } - inline const unsigned int GetID() const { return this->id; } + inline unsigned int GetID() const { return this->id; } inline const Query &GetQuery() const { return this->query; } inline const Anope::string &GetError() const { return this->error; } -- cgit