style cleanup

This commit is contained in:
Akash Mozumdar 2019-06-18 00:39:50 -04:00
parent 68534619aa
commit d9ba1e5854
2 changed files with 3 additions and 2 deletions

View File

@ -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]

View File

@ -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());