sys: Return std::nullopt instead of {} for empty optional values

This commit is contained in:
WerWolv
2022-01-30 12:43:43 +01:00
parent 4bc074fa84
commit dd572ba024
11 changed files with 45 additions and 46 deletions

View File

@@ -212,7 +212,7 @@ namespace hex::pl {
}
} catch (PreprocessorError &e) {
this->m_error = e;
return {};
return std::nullopt;
}
return output;