# HG changeset patch # User Chris Cannam # Date 1569089594 -3600 # Node ID c5d2de8f7647070ac66efa273346cb4e27873947 # Parent e4629d449688a49761c3eba4ef4d6a2c4255dd45 Fix confusion about capture scope with MSVC diff -r e4629d449688 -r c5d2de8f7647 widgets/ItemEditDialog.cpp --- 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) {};