From be4252127b034dfa60b2014c247fc915d717ec62 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 28 Feb 2020 01:25:12 -0500 Subject: [PATCH] SpecBase: Remove redundant std::bind std::thread can already execute the supplied function as is without the assistance of std::bind. --- DataSpec/SpecBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataSpec/SpecBase.cpp b/DataSpec/SpecBase.cpp index 675daa1fd..39080177a 100644 --- a/DataSpec/SpecBase.cpp +++ b/DataSpec/SpecBase.cpp @@ -1201,7 +1201,7 @@ void SpecBase::beginBackgroundIndex() { cancelBackgroundIndex(); clearTagCache(); m_backgroundRunning = true; - m_backgroundIndexTh = std::thread(std::bind(&SpecBase::backgroundIndexProc, this)); + m_backgroundIndexTh = std::thread(&SpecBase::backgroundIndexProc, this); } void SpecBase::waitForIndexComplete() const {