mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 13:05:25 -05:00
sys: Return std::nullopt instead of {} for empty optional values
This commit is contained in:
@@ -313,7 +313,7 @@ namespace hex {
|
||||
}
|
||||
|
||||
if (evaluationStack.empty())
|
||||
return {};
|
||||
return std::nullopt;
|
||||
else if (evaluationStack.size() > 1)
|
||||
throw std::invalid_argument("Undigested input left!");
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user