Beautifier: Fix code style

Change-Id: I991f47d2f6844b153cd47ac856e5a76a7a962c94
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Lorenz Haas
2016-06-01 18:12:51 +02:00
committed by hjk
parent 09029041c9
commit cd00e64e37
10 changed files with 19 additions and 19 deletions

View File

@@ -314,7 +314,7 @@ void BeautifierPlugin::formatEditorAsync(TextEditorWidget *editor, const Command
QFutureWatcher<FormatTask> *watcher = new QFutureWatcher<FormatTask>;
const TextDocument *doc = editor->textDocument();
connect(doc, &TextDocument::contentsChanged, watcher, &QFutureWatcher<FormatTask>::cancel);
connect(watcher, &QFutureWatcherBase::finished, [this, watcher]() {
connect(watcher, &QFutureWatcherBase::finished, [this, watcher] {
if (watcher->isCanceled())
showError(tr("File was modified."));
else