From 3cb65dba6332be7b75571593784c62793a5a9763 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Sun, 4 Nov 2018 16:31:39 -0500 Subject: [PATCH] dont need those names for 30 line program --- extensions/regexfilter/regexfilter.cpp | 2 +- extensions/regexfilter/window.cpp | 2 +- extensions/regexfilter/window.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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: