From 21a789857267e4502f0fbcf1b4336928f2cdba48 Mon Sep 17 00:00:00 2001 From: Victor Zarubkin Date: Sun, 20 Nov 2016 14:11:46 +0300 Subject: [PATCH] removed unnecessary lambdas --- profiler_gui/blocks_graphics_view.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/profiler_gui/blocks_graphics_view.cpp b/profiler_gui/blocks_graphics_view.cpp index 7dfca88..f67904f 100644 --- a/profiler_gui/blocks_graphics_view.cpp +++ b/profiler_gui/blocks_graphics_view.cpp @@ -106,9 +106,9 @@ const uint64_t ADDITIONAL_OFFSET = 50000000ULL; // Additional 50 ms before first ////////////////////////////////////////////////////////////////////////// -auto const sign = [](int _value) { return _value < 0 ? -1 : 1; }; -auto const absmin = [](int _a, int _b) { return abs(_a) < abs(_b) ? _a : _b; }; -auto const clamp = [](qreal _minValue, qreal _value, qreal _maxValue) { return _value < _minValue ? _minValue : (_value > _maxValue ? _maxValue : _value); }; +inline int sign(int _value) { return _value < 0 ? -1 : 1; } +inline int absmin(int _a, int _b) { return abs(_a) < abs(_b) ? _a : _b; } +inline qreal clamp(qreal _minValue, qreal _value, qreal _maxValue) { return _value < _minValue ? _minValue : (_value > _maxValue ? _maxValue : _value); } //////////////////////////////////////////////////////////////////////////