mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-23 17:04:12 +08:00
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");
|
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);
|
QString saveFile = QFileDialog::getSaveFileName(this, SAVE_SEARCH_RESULTS, "./Hooks.txt", TEXT_FILES);
|
||||||
if (saveFile.isEmpty()) saveFile = "Hooks.txt";
|
if (saveFile.isEmpty()) saveFile = "Hooks.txt";
|
||||||
std::thread([hooks, saveFile]
|
std::thread([hooks, saveFile]
|
||||||
|
@ -81,7 +81,7 @@ bool Replace(std::wstring& sentence)
|
|||||||
std::shared_lock l(m);
|
std::shared_lock l(m);
|
||||||
for (int i = 0; i < sentence.size(); ++i)
|
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)
|
if (replacement)
|
||||||
{
|
{
|
||||||
sentence.replace(i, length, replacement.value());
|
sentence.replace(i, length, replacement.value());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user