summaryrefslogtreecommitdiffstats
path: root/src/syseq.h
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2013-08-04 14:27:59 +0000
committerKris <Kris.De.Gussem@hotmail.com>2013-08-04 14:27:59 +0000
commitdd957026bd798ebe34eff033b4a839d63b790b04 (patch)
treea7e5105597676cfb1f4d293640c3f411e9bd2d32 /src/syseq.h
parentcppcheck: c-style casts > c++ style casts (diff)
downloadinkscape-dd957026bd798ebe34eff033b4a839d63b790b04.tar.gz
inkscape-dd957026bd798ebe34eff033b4a839d63b790b04.zip
cppcheck
(bzr r12467)
Diffstat (limited to 'src/syseq.h')
-rw-r--r--src/syseq.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/syseq.h b/src/syseq.h
index 4e7ccd943..582f2949f 100644
--- a/src/syseq.h
+++ b/src/syseq.h
@@ -181,10 +181,9 @@ static std::vector<int> gauss_jordan (double A[S][T], int avoid_col = -1) {
if (avoid_col != -1) {
cols_used.push_back (avoid_col);
}
- int col;
for (int i = 0; i < S; ++i) {
/* for each row find a pivot element of maximal absolute value, skipping the columns that were used before */
- col = find_pivot<S,T>(A, i, cols_used);
+ int col = find_pivot<S,T>(A, i, cols_used);
cols_used.push_back(col);
if (col == -1) {
// no non-zero elements in the row