summaryrefslogtreecommitdiffstats
path: root/sc/inc/queryparam.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2011-11-03 22:45:31 -0400
committerKohei Yoshida <kohei.yoshida@suse.com>2011-11-04 22:40:26 -0400
commitfa42b0d8382d1a509ff95a79dbd18787fd5b3735 (patch)
treeb8e65005e183bba673627312fcc94f54f637722b /sc/inc/queryparam.hxx
parentLet's not use a hard-coded MAXQUERY all over the place. (diff)
downloadcore-fa42b0d8382d1a509ff95a79dbd18787fd5b3735.tar.gz
core-fa42b0d8382d1a509ff95a79dbd18787fd5b3735.zip
const correct ness etc & mutable only for lazy-initializing accessor.
Diffstat (limited to 'sc/inc/queryparam.hxx')
-rw-r--r--sc/inc/queryparam.hxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/sc/inc/queryparam.hxx b/sc/inc/queryparam.hxx
index 915422458bcf..a083f74acb9c 100644
--- a/sc/inc/queryparam.hxx
+++ b/sc/inc/queryparam.hxx
@@ -51,7 +51,8 @@ struct ScQueryParamBase
virtual bool IsValidFieldIndex() const;
SC_DLLPUBLIC SCSIZE GetEntryCount() const;
- SC_DLLPUBLIC ScQueryEntry& GetEntry(SCSIZE n) const;
+ SC_DLLPUBLIC const ScQueryEntry& GetEntry(SCSIZE n) const;
+ SC_DLLPUBLIC ScQueryEntry& GetEntry(SCSIZE n);
void Resize(SCSIZE nNew);
SC_DLLPUBLIC void DeleteQuery( SCSIZE nPos );
void FillInExcelSyntax(String& aCellStr, SCSIZE nIndex);
@@ -60,7 +61,7 @@ protected:
ScQueryParamBase();
ScQueryParamBase(const ScQueryParamBase& r);
- mutable std::vector<ScQueryEntry> maEntries;
+ std::vector<ScQueryEntry> maEntries;
};
// ============================================================================
@@ -92,8 +93,8 @@ struct SC_DLLPUBLIC ScQueryParam : public ScQueryParamBase, public ScQueryParamT
ScQueryParam( const ScDBQueryParamInternal& r );
virtual ~ScQueryParam();
- ScQueryParam& operator= ( const ScQueryParam& r );
- sal_Bool operator== ( const ScQueryParam& rOther ) const;
+ ScQueryParam& operator= ( const ScQueryParam& r );
+ bool operator== ( const ScQueryParam& rOther ) const;
void Clear();
void ClearDestParams();
void MoveToDest();