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 @@ -241,7 +241,8 @@ void ExternalAuthManagerThread::setRbacCacheEpoch(
241241}
242242
243243void ExternalAuthManagerThread::processResponseQueue () {
244- auto responses = std::move (incommingResponse);
244+ decltype (incommingResponse) responses;
245+ responses.swap (incommingResponse);
245246 while (!responses.empty ()) {
246247 const auto & entry = responses.front ();
247248 auto iter = requestMap.find (entry->opaque );
@@ -260,7 +261,8 @@ void ExternalAuthManagerThread::processResponseQueue() {
260261 }
261262}
262263void ExternalAuthManagerThread::purgePendingDeadConnections () {
263- auto pending = std::move (pendingRemoveConnection);
264+ decltype (pendingRemoveConnection) pending;
265+ pending.swap (pendingRemoveConnection);
264266 for (const auto & connection : pending) {
265267 LOG_WARNING_RAW (
266268 " External authentication manager died. Expect "
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ void CB3ExecutorThread::resetCurrentTask() {
171171 std::lock_guard<std::mutex> lh (currentTaskMutex);
172172 // move currentTask so we 'steal' the pointer and ensure currentTask
173173 // owns nothing.
174- resetThisObject = std::move (currentTask);
174+ resetThisObject. swap (currentTask);
175175 }
176176 {
177177 // Freeing of the Task object should be accounted to the engine
You can’t perform that action at this time.
0 commit comments