From 9535c4be4694bf35a3f0e9c0bb0eac080a868dd7 Mon Sep 17 00:00:00 2001 From: abv Date: Sat, 24 Oct 2015 08:00:58 +0300 Subject: [PATCH] 0026799: NCollection_Array2's RowLength and ColLength return wrong value. Comments to methods RowLength() and ColLength() improved to avoid possible misinterpretation --- src/NCollection/NCollection_Array2.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/NCollection/NCollection_Array2.hxx b/src/NCollection/NCollection_Array2.hxx index c03181f25e..c298d9e9f4 100644 --- a/src/NCollection/NCollection_Array2.hxx +++ b/src/NCollection/NCollection_Array2.hxx @@ -140,10 +140,11 @@ public: Standard_Integer Length (void) const { return RowLength() * ColLength(); } - //! RowLength + //! Returns length of the row, i.e. number of columns Standard_Integer RowLength (void) const { return (myUpperCol-myLowerCol+1); } - //! ColLength + + //! Returns length of the column, i.e. number of rows Standard_Integer ColLength (void) const { return (myUpperRow-myLowerRow+1); }