aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/qtvector.cpp
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-06-20 17:37:56 +0200
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-06-20 17:37:56 +0200
commitf1679c7185471289afaf702a45e336849d20a81a (patch)
tree2d6d649c8d0ae0985dfeaae2fdf2da47294264ae /test/qtvector.cpp
parente402d34407226d9c2c5dfc14ef5d6dbf53ee3c8e (diff)
Utilize Index in all unit tests.
Diffstat (limited to 'test/qtvector.cpp')
-rw-r--r--test/qtvector.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/qtvector.cpp b/test/qtvector.cpp
index bc780b45b..b9bb9d076 100644
--- a/test/qtvector.cpp
+++ b/test/qtvector.cpp
@@ -33,8 +33,10 @@
template<typename MatrixType>
void check_qtvector_matrix(const MatrixType& m)
{
- int rows = m.rows();
- int cols = m.cols();
+ typedef typename MatrixType::Index Index;
+
+ Index rows = m.rows();
+ Index cols = m.cols();
MatrixType x = MatrixType::Random(rows,cols), y = MatrixType::Random(rows,cols);
QVector<MatrixType> v(10, MatrixType(rows,cols)), w(20, y);
for(int i = 0; i < 20; i++)