diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-10-07 21:34:08 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-10-07 21:36:51 +0200 |
commit | 5441b2a60627406f3c235864c126a31e87234259 (patch) | |
tree | 86fe81ee526d6989cf8e7d09d107a26fc9356be3 /qfunctionconfigurator | |
parent | 790a9cff9a25def2370186e2a56ed30fbdbf0195 (diff) |
qfc: move var to outer scope
Diffstat (limited to 'qfunctionconfigurator')
-rw-r--r-- | qfunctionconfigurator/functionconfig.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<float>(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<int>(sz, p2.x() * mult_); const int start = p1.x() * mult; |