Fix compiler warning in MetricSelect.cpp (#3852)

This commit is contained in:
Paul Johnson
2021-03-29 00:15:04 +01:00
committed by GitHub
parent b9b6745da5
commit 5c33ffb1d4

View File

@@ -64,7 +64,7 @@ MetricSelect::MetricSelect(QWidget *parent, Context *context, int scope)
void
MetricSelect::setSymbol(QString symbol)
{
if (scope&Metric == 0) return;
if ((scope & MetricSelect::Metric) == 0) return;
// get the ridemetric
RideMetricFactory &factory = RideMetricFactory::instance();