Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Fix build error in avs-device-sdk std move function #2089

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AVSCommon/Utils/src/WorkerThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ std::thread::id WorkerThread::getThreadId() const {
void WorkerThread::run(std::function<bool()> workFunc) {
std::lock_guard<std::mutex> lock(m_mutex);
m_cancel = false;
m_workerFunc = move(workFunc);
m_workerFunc = std::move(workFunc);
m_workReady.notify_one();
}

Expand Down
4 changes: 2 additions & 2 deletions AVSGatewayManager/src/AuthRefreshedObserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static const string TAG("AuthRefreshedObserver");

AuthRefreshedObserver::AuthRefreshedObserver(function<void()> afterAuthRefreshedCallback) :
m_state{State::UNINITIALIZED},
m_afterAuthRefreshedCallback{move(afterAuthRefreshedCallback)} {
m_afterAuthRefreshedCallback{std::move(afterAuthRefreshedCallback)} {
}

shared_ptr<AuthRefreshedObserver> alexaClientSDK::avsGatewayManager::AuthRefreshedObserver::create(
Expand All @@ -65,4 +65,4 @@ void AuthRefreshedObserver::onAuthStateChange(State newState, Error error) {
break;
}
m_state = newState;
};
};