diff options
author | Paul Adenot <[email protected]> | 2022-12-12 17:04:54 +0100 |
---|---|---|
committer | Paul Adenot <[email protected]> | 2022-12-13 15:09:21 +0100 |
commit | 274d8b56bc4e9432b682b71bbcf894eb828467ae (patch) | |
tree | 8cfbeb5d85efe69df11787ecec62f9a0ed659918 /src | |
parent | f4b583c04591ec4d9781bef2f4e034fcb9e2dce7 (diff) | |
download | cubeb-274d8b56bc4e9432b682b71bbcf894eb828467ae.tar.gz cubeb-274d8b56bc4e9432b682b71bbcf894eb828467ae.zip |
Fix warnings in cubeb_wasapi.cpp.
This fixes #733.
Diffstat (limited to 'src')
-rw-r--r-- | src/cubeb_wasapi.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cubeb_wasapi.cpp b/src/cubeb_wasapi.cpp index a829bbc..2cad230 100644 --- a/src/cubeb_wasapi.cpp +++ b/src/cubeb_wasapi.cpp @@ -2499,8 +2499,8 @@ setup_wasapi_stream(cubeb_stream * stm) std::unique_ptr<const wchar_t[]> selected_output_device_id; if (stm->output_device_id) { if (std::unique_ptr<wchar_t[]> tmp = - move(copy_wide_string(stm->output_device_id.get()))) { - selected_output_device_id = move(tmp); + copy_wide_string(stm->output_device_id.get())) { + selected_output_device_id = std::move(tmp); } else { LOG("Failed to copy output device identifier."); return CUBEB_ERROR; @@ -2542,7 +2542,7 @@ setup_wasapi_stream(cubeb_stream * stm) cubeb_devid matched = wasapi_find_bt_handsfree_output_device(stm); if (matched) { selected_output_device_id = - move(utf8_to_wstr(reinterpret_cast<char const *>(matched))); + utf8_to_wstr(reinterpret_cast<char const *>(matched)); } } } @@ -2558,9 +2558,9 @@ setup_wasapi_stream(cubeb_stream * stm) stm->output_stream_params.layout = stm->input_stream_params.layout; if (stm->input_device_id) { if (std::unique_ptr<wchar_t[]> tmp = - move(copy_wide_string(stm->input_device_id.get()))) { + copy_wide_string(stm->input_device_id.get())) { XASSERT(!selected_output_device_id); - selected_output_device_id = move(tmp); + selected_output_device_id = std::move(tmp); } else { LOG("Failed to copy device identifier while copying input stream " "configuration to output stream configuration to drive loopback."); |