aboutsummaryrefslogtreecommitdiff
path: root/src/sync.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sync.cpp')
-rw-r--r--src/sync.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/sync.cpp b/src/sync.cpp
index 58752a9f18..93c9194541 100644
--- a/src/sync.cpp
+++ b/src/sync.cpp
@@ -2,10 +2,6 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
-#if defined(HAVE_CONFIG_H)
-#include <config/bitcoin-config.h>
-#endif
-
#include <sync.h>
#include <logging.h>
@@ -41,11 +37,11 @@ struct CLockLocation {
const char* pszFile,
int nLine,
bool fTryIn,
- const std::string& thread_name)
+ std::string&& thread_name)
: fTry(fTryIn),
mutexName(pszName),
sourceFile(pszFile),
- m_thread_name(thread_name),
+ m_thread_name(std::move(thread_name)),
sourceLine(nLine) {}
std::string ToString() const
@@ -64,7 +60,7 @@ private:
bool fTry;
std::string mutexName;
std::string sourceFile;
- const std::string& m_thread_name;
+ const std::string m_thread_name;
int sourceLine;
};