From b569216dc3f71df2c9f16d446e650b2f01b2d955 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Wed, 5 Dec 2007 07:44:57 +0000 Subject: [PATCH] remove useless default argument values --- src/Core/Column.h | 4 ++-- src/Core/DynBlock.h | 4 ++-- src/Core/Minor.h | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Core/Column.h b/src/Core/Column.h index 4ca353540..54fe4cf9a 100644 --- a/src/Core/Column.h +++ b/src/Core/Column.h @@ -53,14 +53,14 @@ template class Column int _rows() const { return m_matrix.rows(); } int _cols() const { return 1; } - Scalar& _write(int row, int col=0) + Scalar& _write(int row, int col) { EIGEN_UNUSED(col); EIGEN_CHECK_ROW_RANGE(*this, row); return m_matrix.write(row, m_col); } - Scalar _read(int row, int col=0) const + Scalar _read(int row, int col) const { EIGEN_UNUSED(col); EIGEN_CHECK_ROW_RANGE(*this, row); diff --git a/src/Core/DynBlock.h b/src/Core/DynBlock.h index ea9be7680..8a52b4c58 100644 --- a/src/Core/DynBlock.h +++ b/src/Core/DynBlock.h @@ -59,12 +59,12 @@ template class DynBlock int _rows() const { return m_blockRows; } int _cols() const { return m_blockCols; } - Scalar& _write(int row, int col=0) + Scalar& _write(int row, int col) { return m_matrix.write(row + m_startRow, col + m_startCol); } - Scalar _read(int row, int col=0) const + Scalar _read(int row, int col) const { return m_matrix.read(row + m_startRow, col + m_startCol); } diff --git a/src/Core/Minor.h b/src/Core/Minor.h index f39913d57..9c4116adb 100644 --- a/src/Core/Minor.h +++ b/src/Core/Minor.h @@ -41,7 +41,7 @@ template class Minor MatrixType::ColsAtCompileTime - 1 : Dynamic; Minor(const MatRef& matrix, - int row, int col = 0) + int row, int col) : m_matrix(matrix), m_row(row), m_col(col) { EIGEN_CHECK_RANGES(matrix, row, col); @@ -58,12 +58,12 @@ template class Minor int _rows() const { return m_matrix.rows() - 1; } int _cols() const { return m_matrix.cols() - 1; } - Scalar& _write(int row, int col=0) + Scalar& _write(int row, int col) { return m_matrix.write(row + (row >= m_row), col + (col >= m_col)); } - Scalar _read(int row, int col=0) const + Scalar _read(int row, int col) const { return m_matrix.read(row + (row >= m_row), col + (col >= m_col)); }