mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 06:06:23 +00:00
refactor(Core): apply clang-tidy modernize-pass-by-value (#3823)
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
#ifndef _TRANSACTION_H
|
||||
#define _TRANSACTION_H
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "SQLOperation.h"
|
||||
|
||||
//- Forward declare (don't include header to prevent circular includes)
|
||||
@@ -48,7 +50,7 @@ class TransactionTask : public SQLOperation
|
||||
friend class DatabaseWorker;
|
||||
|
||||
public:
|
||||
TransactionTask(SQLTransaction trans) : m_trans(trans) { } ;
|
||||
TransactionTask(SQLTransaction trans) : m_trans(std::move(trans)) { } ;
|
||||
~TransactionTask() override = default;
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user