From e4cc0ee6270eb4d388a169438f58aa481f705261 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sun, 1 Apr 2018 19:52:36 +0200 Subject: [PATCH] view.cpp: Drop unneeded parenthesis. --- pv/views/trace/view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2