mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2026-09-29 14:23:32 -05:00
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:
@@ -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>();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user