mirror of
https://github.com/anope/anope.git
synced 2026-06-24 18:26:37 +02:00
Fix Clang and GCC disagreeing about whether a move is needed.
This commit is contained in:
@@ -203,7 +203,12 @@ Result SQLiteService::RunQuery(const Query &query)
|
||||
if (err != SQLITE_DONE)
|
||||
return SQLiteResult(query, real_query, sqlite3_errmsg(this->sql));
|
||||
|
||||
// GCC and clang disagree about whether this should be a move >:(
|
||||
#ifdef __clang__
|
||||
return std::move(result);
|
||||
#else
|
||||
return result;
|
||||
#endif
|
||||
}
|
||||
|
||||
std::vector<Query> SQLiteService::CreateTable(const Anope::string &table, const Data &data)
|
||||
|
||||
Reference in New Issue
Block a user