From: abv Date: Sat, 24 Oct 2015 05:00:58 +0000 (+0300) Subject: 0026799: NCollection_Array2's RowLength and ColLength return wrong value. X-Git-Tag: V7_0_0_beta~167 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=9535c4be4694bf35a3f0e9c0bb0eac080a868dd7;p=occt-copy.git 0026799: NCollection_Array2's RowLength and ColLength return wrong value. Comments to methods RowLength() and ColLength() improved to avoid possible misinterpretation --- 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); }