From 5441b2a60627406f3c235864c126a31e87234259 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 7 Oct 2015 21:34:08 +0200 Subject: qfc: move var to outer scope --- qfunctionconfigurator/functionconfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qfunctionconfigurator/functionconfig.cpp b/qfunctionconfigurator/functionconfig.cpp index b93a4cbf..594607ff 100644 --- a/qfunctionconfigurator/functionconfig.cpp +++ b/qfunctionconfigurator/functionconfig.cpp @@ -77,6 +77,7 @@ void Map::reload() { data = std::vector(value_count); const int mult = precision(); + const int mult_ = mult * 30; const int sz = data.size(); @@ -103,7 +104,6 @@ void Map::reload() { const float p0_y = p0.y(), p1_y = p1.y(), p2_y = p2.y(), p3_y = p3.y(); // multiplier helps fill in all the x's needed - const int mult_ = mult * 30; const int end = std::min(sz, p2.x() * mult_); const int start = p1.x() * mult; -- cgit v1.2.3