Replace std::tie by structured binding

pull/3043/head
elsid 4 years ago
parent 90c8e77e2c
commit e4cce88142
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

@ -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 {};

Loading…
Cancel
Save