diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2009-09-16 17:38:14 -0400 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2009-09-16 17:38:14 -0400 |
commit | f8acf48d34271dc41ee4d4e1d51a465af42844d9 (patch) | |
tree | b8c82fbf7983122de1d7ecd2c76c3dd78035442c /sc/inc/queryparam.hxx | |
parent | a3a5aa0c3708bdc0f038592aea4512a1809aab82 (diff) |
last cleanup - use vector to store an array of ScQueryEntry, instead of the old-fashioned c-style dynamic array.
Diffstat (limited to 'sc/inc/queryparam.hxx')
-rw-r--r-- | sc/inc/queryparam.hxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sc/inc/queryparam.hxx b/sc/inc/queryparam.hxx index ec8e22c49171..8e84f1e53e36 100644 --- a/sc/inc/queryparam.hxx +++ b/sc/inc/queryparam.hxx @@ -34,6 +34,8 @@ #include "global.hxx" #include "scmatrix.hxx" +#include <vector> + struct ScDBQueryParamInternal; struct ScQueryParamBase @@ -48,18 +50,17 @@ struct ScQueryParamBase virtual ~ScQueryParamBase(); - SCSIZE GetEntryCount() const { return nEntryCount; } - ScQueryEntry& GetEntry(SCSIZE n) const { return pEntries[n]; } - void Resize(SCSIZE nNew); + SC_DLLPUBLIC SCSIZE GetEntryCount() const; + SC_DLLPUBLIC ScQueryEntry& GetEntry(SCSIZE n) const; + void Resize(SCSIZE nNew); SC_DLLPUBLIC void DeleteQuery( SCSIZE nPos ); - void FillInExcelSyntax(String& aCellStr, SCSIZE nIndex); + void FillInExcelSyntax(String& aCellStr, SCSIZE nIndex); protected: ScQueryParamBase(); ScQueryParamBase(const ScQueryParamBase& r); - SCSIZE nEntryCount; - ScQueryEntry* pEntries; + mutable ::std::vector<ScQueryEntry> maEntries; }; // ============================================================================ |