Fix move constructor/operator to properly release the combo handle, use std::forward_list instead of vector for the list

This commit is contained in:
Maschell
2024-12-29 23:52:22 +01:00
parent 930df8748f
commit 4919c5f98c
2 changed files with 20 additions and 10 deletions

View File

@@ -6,9 +6,9 @@
#include <functional>
#include <memory>
#include <vector>
#include <cstdint>
#include <forward_list>
class ButtonComboWrapper;
@@ -71,6 +71,6 @@ public:
[[nodiscard]] uint32_t getHandle() const;
private:
std::vector<ButtonComboWrapper> mComboWrappers;
std::forward_list<ButtonComboWrapper> mComboWrappers;
std::unique_ptr<uint32_t> mHandle = std::make_unique<uint32_t>();
};