Fix warnings about unused lambda captures

Change-Id: Ib9bcf180fd8ceffbf88836a62fc9532e6f7fc656
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Tobias Hunger
2018-02-21 10:32:48 +01:00
parent 9b5f4a41b9
commit 980fd54ea1
2 changed files with 2 additions and 2 deletions

View File

@@ -2015,7 +2015,7 @@ bool BreakHandler::contextMenuEvent(const ItemViewEvent &ev)
? locationsEnabled ? tr("Disable Selected Locations") : tr("Enable Selected Locations")
: locationsEnabled ? tr("Disable Location") : tr("Enable Location"),
!selectedLocations.isEmpty() && handlesIndividualLocations,
[this, selectedLocations, locationsEnabled] {
[selectedLocations, locationsEnabled] {
for (LocationItem *location : selectedLocations) {
location->params.enabled = !locationsEnabled;
location->update();