diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-02-12 00:00:22 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-12 07:37:08 +0100 |
commit | 3f08be2e511dc2300021486a1cc2f1e8ba530373 (patch) | |
tree | 4498ff04e82aa36b94274af254b60f35e29805a8 /reportdesign/source/ui/dlg/Condition.cxx | |
parent | f9c57cae202818258b416b4ca28040a44e8887c2 (diff) |
Simplify containers iterations in reportdesign, sal, sax
Use range-based loop or replace with STL functions
Change-Id: If6b734dab12a7298fce16003d3d175305fbe798d
Reviewed-on: https://gerrit.libreoffice.org/67701
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign/source/ui/dlg/Condition.cxx')
-rw-r--r-- | reportdesign/source/ui/dlg/Condition.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/reportdesign/source/ui/dlg/Condition.cxx b/reportdesign/source/ui/dlg/Condition.cxx index 48f2a5c3c26c..796f891d21f9 100644 --- a/reportdesign/source/ui/dlg/Condition.cxx +++ b/reportdesign/source/ui/dlg/Condition.cxx @@ -338,15 +338,12 @@ void Condition::impl_setCondition( const OUString& _rConditionFormula ) const OUString sUnprefixedFieldContent( aFieldContentFormula.getBracketedFieldOrExpression() ); // check whether one of the Field Value Expression Factories recognizes the expression - for ( ConditionalExpressions::const_iterator exp = m_aConditionalExpressions.begin(); - exp != m_aConditionalExpressions.end(); - ++exp - ) + for (const auto& [rOperation, rxConditionalExpression] : m_aConditionalExpressions) { - if ( exp->second->matchExpression( sExpression, sUnprefixedFieldContent, sLHS, sRHS ) ) + if ( rxConditionalExpression->matchExpression( sExpression, sUnprefixedFieldContent, sLHS, sRHS ) ) { eType = eFieldValueComparison; - eOperation = exp->first; + eOperation = rOperation; break; } } |