mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
sys: Fixed many clang tidy warnings and typos
This commit is contained in:
@@ -90,8 +90,10 @@ namespace hex::pl {
|
||||
|
||||
auto preprocessedInclude = preprocessor.preprocess(file.readString(), /*initialRun =*/false);
|
||||
|
||||
if (!preprocessedInclude.has_value())
|
||||
throw *preprocessor.m_error;
|
||||
if (!preprocessedInclude.has_value()) {
|
||||
auto error = *preprocessor.m_error;
|
||||
throw error;
|
||||
}
|
||||
|
||||
if (preprocessor.shouldOnlyIncludeOnce()) {
|
||||
auto [iter, added] = this->m_onceIncludedFiles.insert(includePath);
|
||||
|
||||
Reference in New Issue
Block a user