From 614b74eff9f91d32f1ca279d4a62236ec65ae655 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Mon, 21 May 2018 17:57:25 +0200 Subject: [PATCH] [apps/statistics] Clean HistogramView --- apps/statistics/histogram_view.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/statistics/histogram_view.cpp b/apps/statistics/histogram_view.cpp index 0f94927d3..12d2c825b 100644 --- a/apps/statistics/histogram_view.cpp +++ b/apps/statistics/histogram_view.cpp @@ -51,10 +51,7 @@ void HistogramView::setHighlight(float start, float end) { } char * HistogramView::label(Axis axis, int index) const { - if (axis == Axis::Vertical) { - return nullptr; - } - return (char *)m_labels[index]; + return axis == Axis::Vertical ? nullptr : (char *)m_labels[index]; } float HistogramView::EvaluateHistogramAtAbscissa(float abscissa, void * model, void * context) {