File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,8 @@ void ExternalAuthManagerThread::setRbacCacheEpoch(
243243}
244244
245245void ExternalAuthManagerThread::processResponseQueue () {
246- auto responses = std::move (incommingResponse);
246+ decltype (incommingResponse) responses;
247+ responses.swap (incommingResponse);
247248 while (!responses.empty ()) {
248249 const auto & entry = responses.front ();
249250 auto iter = requestMap.find (entry->opaque );
@@ -262,7 +263,8 @@ void ExternalAuthManagerThread::processResponseQueue() {
262263 }
263264}
264265void ExternalAuthManagerThread::purgePendingDeadConnections () {
265- auto pending = std::move (pendingRemoveConnection);
266+ decltype (pendingRemoveConnection) pending;
267+ pending.swap (pendingRemoveConnection);
266268 for (const auto & connection : pending) {
267269 LOG_WARNING_RAW (
268270 " External authentication manager died. Expect "
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ void CB3ExecutorThread::resetCurrentTask() {
164164 std::lock_guard<std::mutex> lh (currentTaskMutex);
165165 // move currentTask so we 'steal' the pointer and ensure currentTask
166166 // owns nothing.
167- resetThisObject = std::move (currentTask);
167+ resetThisObject. swap (currentTask);
168168 }
169169 {
170170 // Freeing of the Task object should be accounted to the engine
You can’t perform that action at this time.
0 commit comments