summaryrefslogtreecommitdiffstats
path: root/sc/inc/queryparam.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-06-06 16:46:03 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-06-06 16:47:07 -0400
commit237e4f52abefc3714accef79deae976f634e04ec (patch)
treeeb269a69c6fd6365817b920f2ad5a67a1b4a97b3 /sc/inc/queryparam.hxx
parentSome cppcheck cleaning (diff)
downloadcore-237e4f52abefc3714accef79deae976f634e04ec.tar.gz
core-237e4f52abefc3714accef79deae976f634e04ec.zip
Use iterators over index access.
This makes ValidQuery *slightly* faster. Change-Id: I9fff6099b597d7a8d4d5a4358099348baa657802
Diffstat (limited to 'sc/inc/queryparam.hxx')
-rw-r--r--sc/inc/queryparam.hxx10
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;
};