diff options
author | Noel Grandin <noel@peralex.com> | 2012-01-20 12:08:55 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-01-20 17:07:19 -0500 |
commit | cc86807e41d44a8f64b74dfc89ddb85cd48a7197 (patch) | |
tree | a6a028ed9cfcbaae52ac31b7c308cd977fda2f04 /sc/inc/column.hxx | |
parent | More on String to rtl::OUString changes. (diff) | |
download | core-cc86807e41d44a8f64b74dfc89ddb85cd48a7197.tar.gz core-cc86807e41d44a8f64b74dfc89ddb85cd48a7197.zip |
Replace open-coded array with std::vector in ScColumn.
Diffstat (limited to 'sc/inc/column.hxx')
-rw-r--r-- | sc/inc/column.hxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index f86bf9baadaf..5000bae9de48 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -35,6 +35,7 @@ #include "rangenam.hxx" #include <set> +#include <vector> namespace editeng { class SvxBorderLine; } @@ -105,9 +106,7 @@ private: SCCOL nCol; SCTAB nTab; - SCSIZE nCount; - SCSIZE nLimit; - ColEntry* pItems; + std::vector<ColEntry> aItems; ScAttrArray* pAttrArray; ScDocument* pDocument; @@ -257,7 +256,7 @@ public: double GetValue( SCROW nRow ) const; void GetFormula( SCROW nRow, rtl::OUString& rFormula ) const; CellType GetCellType( SCROW nRow ) const; - SCSIZE GetCellCount() const { return nCount; } + SCSIZE GetCellCount() const { return aItems.size(); } sal_uInt32 GetWeightedCount() const; sal_uInt32 GetCodeCount() const; // RPN-Code in formulas sal_uInt16 GetErrCode( SCROW nRow ) const; |