style cleanup
This commit is contained in:
parent
68534619aa
commit
d9ba1e5854
@ -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]
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user