mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-12-16 04:09:39 +00:00
Config: Use maximum value of size_t instead of -1 as default value in ConfigChangedCallbackID
Co-authored-by: OatmealDome <julian@oatmealdome.me>
This commit is contained in:
parent
f9b167d8c6
commit
f67691d564
@ -4,6 +4,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
#include <limits>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
@ -17,7 +18,7 @@ namespace Config
|
||||
{
|
||||
struct ConfigChangedCallbackID
|
||||
{
|
||||
size_t id = -1;
|
||||
size_t id = std::numeric_limits<size_t>::max();
|
||||
|
||||
bool operator==(const ConfigChangedCallbackID&) const = default;
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user