diff options
-rw-r--r-- | sc/inc/table.hxx | 2 | ||||
-rw-r--r-- | sc/source/core/data/table2.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index f29e7f9aa94f..1a84fce46730 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -1069,7 +1069,7 @@ private: }; public : - ScColumn* GetColumnByIndex(sal_Int32 index); + ScColumn* GetColumnByIndex( sal_Int32 nIndex ); }; diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx index cc7b435c97f7..e4b9ea6290c1 100644 --- a/sc/source/core/data/table2.cxx +++ b/sc/source/core/data/table2.cxx @@ -3654,11 +3654,11 @@ sal_uLong ScTable::GetColOffset( SCCOL nCol, bool bHiddenAsZero ) const return n; } -ScColumn* ScTable::GetColumnByIndex(sal_Int32 index) +ScColumn* ScTable::GetColumnByIndex( sal_Int32 nIndex ) { - if (ValidCol(index)) + if (ValidCol(nIndex)) { - return &(aCol[index]); + return &(aCol[nIndex]); } return NULL; } |