From 6b5c2ab95eff74b4176eeacb95ecc66d0f45e0fe Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 29 Mar 2024 13:10:45 +0100 Subject: [PATCH] StorageAPI: Make sure to call noexcept version of CreateSubItem in GetOrCreateSubItem --- libraries/libwups/storageCPP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libwups/storageCPP.cpp b/libraries/libwups/storageCPP.cpp index be511ff..e395b05 100644 --- a/libraries/libwups/storageCPP.cpp +++ b/libraries/libwups/storageCPP.cpp @@ -85,7 +85,7 @@ std::optional WUPSStorageSubItem::GetOrCreateSubItem(std::st wups_storage_item outItem = {}; err = WUPSStorageAPI_GetSubItem(mHandle, key.data(), &outItem); if (err == WUPS_STORAGE_ERROR_NOT_FOUND) { - return CreateSubItem(key); + return CreateSubItem(key, err); } return WUPSStorageSubItem(outItem); }