From e4cce88142f383b8ef9dd086c23a545db57ce121 Mon Sep 17 00:00:00 2001 From: elsid Date: Sat, 9 Jan 2021 14:09:27 +0100 Subject: [PATCH] Replace std::tie by structured binding --- apps/openmw/mwsound/sound_buffer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/openmw/mwsound/sound_buffer.cpp b/apps/openmw/mwsound/sound_buffer.cpp index 0e25ff6015..cb71cb56d2 100644 --- a/apps/openmw/mwsound/sound_buffer.cpp +++ b/apps/openmw/mwsound/sound_buffer.cpp @@ -82,9 +82,7 @@ namespace MWSound if (sfx->getHandle() == nullptr) { - Sound_Handle handle; - size_t size; - std::tie(handle, size) = mOutput->loadSound(sfx->getResourceName()); + auto [handle, size] = mOutput->loadSound(sfx->getResourceName()); if (handle == nullptr) return {};