aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/languageclient/languageclientformatter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/languageclient/languageclientformatter.cpp')
-rw-r--r--src/plugins/languageclient/languageclientformatter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/languageclient/languageclientformatter.cpp b/src/plugins/languageclient/languageclientformatter.cpp
index c3790e42cb..52f35856af 100644
--- a/src/plugins/languageclient/languageclientformatter.cpp
+++ b/src/plugins/languageclient/languageclientformatter.cpp
@@ -24,7 +24,7 @@ LanguageClientFormatter::LanguageClientFormatter(TextEditor::TextDocument *docum
{
m_cancelConnection = QObject::connect(document->document(),
&QTextDocument::contentsChanged,
- [this]() {
+ [this] {
if (m_ignoreCancel)
m_ignoreCancel = false;
else
@@ -93,7 +93,7 @@ QFutureWatcher<ChangeSet> *LanguageClientFormatter::format(
m_ignoreCancel = true;
m_progress.reportStarted();
auto watcher = new QFutureWatcher<ChangeSet>();
- QObject::connect(watcher, &QFutureWatcher<ChangeSet>::canceled, [this]() {
+ QObject::connect(watcher, &QFutureWatcher<ChangeSet>::canceled, [this] {
cancelCurrentRequest();
});
watcher->setFuture(m_progress.future());