diff --git a/extensions/regexfilter/regexfilter.cpp b/extensions/regexfilter/regexfilter.cpp index ac79e03..ec1031f 100644 --- a/extensions/regexfilter/regexfilter.cpp +++ b/extensions/regexfilter/regexfilter.cpp @@ -25,7 +25,7 @@ BOOL WINAPI DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved bool ProcessSentence(std::wstring& sentence, SentenceInfo sentenceInfo) { if (w == nullptr) return false; - std::lock_guard l(w->locker); + std::lock_guard l(w->m); sentence = std::regex_replace(sentence, w->regex, L""); return true; } \ No newline at end of file diff --git a/extensions/regexfilter/window.cpp b/extensions/regexfilter/window.cpp index 105dc02..0eaf84c 100644 --- a/extensions/regexfilter/window.cpp +++ b/extensions/regexfilter/window.cpp @@ -15,7 +15,7 @@ Window::~Window() void Window::on_regexInput_textEdited(const QString& newRegex) { - std::lock_guard lock(locker); + std::lock_guard l(m); try { regex = newRegex.toStdWString(); } catch (...) {} } diff --git a/extensions/regexfilter/window.h b/extensions/regexfilter/window.h index 274bb1e..5a7fa49 100644 --- a/extensions/regexfilter/window.h +++ b/extensions/regexfilter/window.h @@ -20,7 +20,7 @@ public: ~Window(); Ui::Window* ui; - std::mutex locker; + std::mutex m; std::wregex regex; private slots: