From: Uwe Hermann Date: Sun, 1 Apr 2018 17:52:36 +0000 (+0200) Subject: view.cpp: Drop unneeded parenthesis. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=e4cc0ee6270eb4d388a169438f58aa481f705261;p=pulseview.git view.cpp: Drop unneeded parenthesis. --- diff --git a/pv/views/trace/view.cpp b/pv/views/trace/view.cpp index 5b2a2ef4..8922922a 100644 --- a/pv/views/trace/view.cpp +++ b/pv/views/trace/view.cpp @@ -952,7 +952,7 @@ void View::calculate_tick_spacing() (ScaleUnits[unit++] + tp_margin); } while (tp_with_margin < min_period && unit < countof(ScaleUnits)); - minor_tick_count_ = (unit == 2) ? (4) : (5); + minor_tick_count_ = (unit == 2) ? 4 : 5; tick_period = order_decimal * ScaleUnits[unit - 1]; tick_prefix = static_cast( (order - pv::util::exponent(pv::util::SIPrefix::yocto)) / 3);