diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-06-06 16:46:03 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-06-06 16:47:07 -0400 |
commit | 237e4f52abefc3714accef79deae976f634e04ec (patch) | |
tree | eb269a69c6fd6365817b920f2ad5a67a1b4a97b3 /sc/inc | |
parent | c9e4cc279371a87495bfbc7c52f56686f9ab42c9 (diff) |
Use iterators over index access.
This makes ValidQuery *slightly* faster.
Change-Id: I9fff6099b597d7a8d4d5a4358099348baa657802
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/queryparam.hxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sc/inc/queryparam.hxx b/sc/inc/queryparam.hxx index 77108abe97b5..27d121c19443 100644 --- a/sc/inc/queryparam.hxx +++ b/sc/inc/queryparam.hxx @@ -60,10 +60,18 @@ struct ScQueryParamBase void FillInExcelSyntax(const rtl::OUString& aCellStr, SCSIZE nIndex); protected: + typedef boost::ptr_vector<ScQueryEntry> EntriesType; + +public: + typedef EntriesType::const_iterator const_iterator; + + const_iterator begin() const; + const_iterator end() const; + +protected: ScQueryParamBase(); ScQueryParamBase(const ScQueryParamBase& r); - typedef boost::ptr_vector<ScQueryEntry> EntriesType; EntriesType maEntries; }; |