view.cpp: Drop unneeded parenthesis.
authorUwe Hermann <uwe@hermann-uwe.de>
Sun, 1 Apr 2018 17:52:36 +0000 (19:52 +0200)
committerUwe Hermann <uwe@hermann-uwe.de>
Sun, 1 Apr 2018 17:52:36 +0000 (19:52 +0200)
pv/views/trace/view.cpp

index 5b2a2ef40b98f1f0aec84aee3f086606bcbbcd16..8922922aa1c1e939f747b15327545acc84c6379e 100644 (file)
@@ -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<pv::util::SIPrefix>(
                        (order - pv::util::exponent(pv::util::SIPrefix::yocto)) / 3);