[Libreoffice-commits] core.git: include/formula
Tor Lillqvist
tml at collabora.com
Mon Jun 19 11:42:51 UTC 2017
include/formula/tokenarray.hxx | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
New commits:
commit a8a9d0add52376da9fe5b2ffeb04d4df0e97e69a
Author: Tor Lillqvist <tml at collabora.com>
Date: Mon Jun 19 14:09:45 2017 +0300
s/FormulaTokenArrayStandardIterator/FormulaTokenArrayStandardRange
Because that class isn't an iterator, but a class that produces
iterators (with its begin() and end() member functions).
Change-Id: I13125ced5e82406d049a61078e31690312a82620
diff --git a/include/formula/tokenarray.hxx b/include/formula/tokenarray.hxx
index 7252613cf713..eb04f041abd8 100644
--- a/include/formula/tokenarray.hxx
+++ b/include/formula/tokenarray.hxx
@@ -112,14 +112,14 @@ public:
typedef std::unordered_set<OpCode, std::hash<std::underlying_type<OpCode>::type> > unordered_opcode_set;
-class FORMULA_DLLPUBLIC FormulaTokenArrayStandardIterator
+class FORMULA_DLLPUBLIC FormulaTokenArrayStandardRange
{
private:
FormulaToken** mpBegin;
FormulaToken** mpEnd;
public:
- FormulaTokenArrayStandardIterator(FormulaToken** pBegin, sal_uInt16 nSize) :
+ FormulaTokenArrayStandardRange(FormulaToken** pBegin, sal_uInt16 nSize) :
mpBegin(pBegin),
mpEnd(pBegin + nSize)
{
@@ -272,16 +272,16 @@ public:
FormulaToken** GetArray() const { return pCode; }
- FormulaTokenArrayStandardIterator Tokens() const
+ FormulaTokenArrayStandardRange Tokens() const
{
- return FormulaTokenArrayStandardIterator(pCode, nLen);
+ return FormulaTokenArrayStandardRange(pCode, nLen);
}
FormulaToken** GetCode() const { return pRPN; }
- FormulaTokenArrayStandardIterator RPNTokens() const
+ FormulaTokenArrayStandardRange RPNTokens() const
{
- return FormulaTokenArrayStandardIterator(pRPN, nRPN);
+ return FormulaTokenArrayStandardRange(pRPN, nRPN);
}
sal_uInt16 GetLen() const { return nLen; }
More information about the Libreoffice-commits
mailing list