diff --git a/GUI/mainwindow.cpp b/GUI/mainwindow.cpp index e5ae208..a63fdea 100644 --- a/GUI/mainwindow.cpp +++ b/GUI/mainwindow.cpp @@ -450,7 +450,8 @@ void MainWindow::FindHooks() { if (std::regex_search(text, filter)) hooks->append(S(Util::GenerateCode(hp, processId)) + ": " + S(text) + "\n"); }); - } catch (std::out_of_range) { return; } + } + catch (std::out_of_range) { return; } QString saveFile = QFileDialog::getSaveFileName(this, SAVE_SEARCH_RESULTS, "./Hooks.txt", TEXT_FILES); if (saveFile.isEmpty()) saveFile = "Hooks.txt"; std::thread([hooks, saveFile] diff --git a/extensions/replacer.cpp b/extensions/replacer.cpp index 6ea53d3..3c2308d 100644 --- a/extensions/replacer.cpp +++ b/extensions/replacer.cpp @@ -81,7 +81,7 @@ bool Replace(std::wstring& sentence) std::shared_lock l(m); for (int i = 0; i < sentence.size(); ++i) { - auto[length, replacement] = replacementTrie.Lookup(sentence.substr(i)); + auto [length, replacement] = replacementTrie.Lookup(sentence.substr(i)); if (replacement) { sentence.replace(i, length, replacement.value());