diff options
author | Sadie Powell <sadie@witchery.services> | 2022-01-03 19:33:21 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2022-01-03 19:37:33 +0000 |
commit | ba2c82e2f53bee8db583a54b0020ac3620a32d9c (patch) | |
tree | a754f6a1cb1e86dba7ab33ae8687837329f56842 /include | |
parent | 2c18601d8f3a3b5ab8ddb3ecdd90a2c69c7fbc88 (diff) |
Fix some minor issues discovered whilst working on 2.1.
Diffstat (limited to 'include')
-rw-r--r-- | include/anope.h | 3 | ||||
-rw-r--r-- | include/modules/sql.h | 2 |
2 files changed, 4 insertions, 1 deletions
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 <class InputIterator> 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; } |