diff widgets/ItemEditDialog.cpp @ 1517:c5d2de8f7647 time-frequency-boxes

Fix confusion about capture scope with MSVC
author Chris Cannam
date Sat, 21 Sep 2019 19:13:14 +0100
parents 0fa49a6ce64f
children
line wrap: on
line diff
--- a/widgets/ItemEditDialog.cpp	Fri Sep 20 14:48:55 2019 +0100
+++ b/widgets/ItemEditDialog.cpp	Sat Sep 21 19:13:14 2019 +0100
@@ -38,9 +38,9 @@
                                QString scaleUnits, QWidget *parent) :
     ItemEditDialog(sampleRate, options,
                    [] (QString units) {
-                       ItemEditDialog::LabelOptions options;
-                       options.valueUnits = units;
-                       return options;
+                       ItemEditDialog::LabelOptions labelOptions;
+                       labelOptions.valueUnits = units;
+                       return labelOptions;
                    }(scaleUnits),
                    parent) {};