diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6e87b08..0a7808a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -119,6 +119,7 @@ Development * Any project specific build variable should be mentioned inside `version.h` as well. +* Recommended compiler is `clang`. HIG --- @@ -211,3 +212,7 @@ Tools // declare with default value bool m_prop = false; ``` +* Use `cppcheck` to avoid common errors in the code. Refer to `utils` for more + details. +* Use `clang-format` to apply valid code format. Refer to `utils` for more + details. diff --git a/sources/awesome-widget/plugin/awkeys.cpp b/sources/awesome-widget/plugin/awkeys.cpp index 857a4a7..0499e5a 100644 --- a/sources/awesome-widget/plugin/awkeys.cpp +++ b/sources/awesome-widget/plugin/awkeys.cpp @@ -523,16 +523,8 @@ void AWKeys::updateTextData() { qCDebug(LOG_AW); -#ifdef BUILD_FUTURE - QFuture text = QtConcurrent::run(m_threadPool, [this]() { - calculateValues(); - return parsePattern(m_pattern); - }); -#else /* BUILD_FUTURE */ calculateValues(); - QString text = parsePattern(m_pattern); -#endif /* BUILD_FUTURE */ - emit(needTextToBeUpdated(text)); + emit(needTextToBeUpdated(parsePattern(m_pattern))); emit(dataAggregator->updateData(values)); }