diff options
Diffstat (limited to 'connectivity/source/drivers/file/fcode.cxx')
-rw-r--r-- | connectivity/source/drivers/file/fcode.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/connectivity/source/drivers/file/fcode.cxx b/connectivity/source/drivers/file/fcode.cxx index 52c6099f9442..90b7bbdd8c43 100644 --- a/connectivity/source/drivers/file/fcode.cxx +++ b/connectivity/source/drivers/file/fcode.cxx @@ -355,12 +355,10 @@ void ONthOperator::Exec(OCodeStack& rCodeStack) rCodeStack.push(new OOperandResult(operate(aValues))); - std::vector<OOperand*>::iterator aIter = aOperands.begin(); - std::vector<OOperand*>::const_iterator aEnd = aOperands.end(); - for (; aIter != aEnd; ++aIter) + for (auto& rpOperand : aOperands) { - if (typeid(OOperandResult) == typeid(*(*aIter))) - delete *aIter; + if (typeid(OOperandResult) == typeid(*rpOperand)) + delete rpOperand; } } |