From 69a2feea4fcc8f458760d187a3021a13117eadb7 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Tue, 19 Sep 2017 11:32:21 +0200 Subject: [PATCH] TextEditor: Fix warning about unused capture in lambda Change-Id: I0c9558904ffb43ad6d106b20ce7dd3caea0f23d9 Reviewed-by: Tim Jenssen --- src/plugins/texteditor/texteditoractionhandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/texteditor/texteditoractionhandler.cpp b/src/plugins/texteditor/texteditoractionhandler.cpp index e1e0962f9fd..be12984f67a 100644 --- a/src/plugins/texteditor/texteditoractionhandler.cpp +++ b/src/plugins/texteditor/texteditoractionhandler.cpp @@ -384,7 +384,7 @@ void TextEditorActionHandlerPrivate::createActions() QKeySequence(Core::UseMacShortcuts ? tr("Meta+U") : tr("Alt+U")), G_EDIT_TEXT, advancedEditMenu); m_sortSelectedLinesAction = registerAction(SORT_SELECTED_LINES, - [this] (TextEditorWidget *w) { w->sortSelectedLines(); }, false, tr("&Sort Selected Lines"), + [] (TextEditorWidget *w) { w->sortSelectedLines(); }, false, tr("&Sort Selected Lines"), QKeySequence(Core::UseMacShortcuts ? tr("Meta+Shift+S") : tr("Alt+Shift+S")), G_EDIT_TEXT, advancedEditMenu); m_foldAction = registerAction(FOLD,