[Libreoffice-commits] core.git: include/connectivity
Julien Nabet
serval2412 at yahoo.fr
Thu Mar 29 06:29:43 UTC 2018
include/connectivity/FValue.hxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 29db56381dc19baa77c39f4f2f69c8c587eddcad
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sun Mar 18 11:35:22 2018 +0100
Use for-range loops in include/connectivity
Change-Id: I4a55fbb06f3e919cc81e3462b23f8d94f6292a9b
Reviewed-on: https://gerrit.libreoffice.org/51494
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/include/connectivity/FValue.hxx b/include/connectivity/FValue.hxx
index 4849ddad5e61..65302f814c72 100644
--- a/include/connectivity/FValue.hxx
+++ b/include/connectivity/FValue.hxx
@@ -512,8 +512,8 @@ namespace connectivity
OValueRefVector(){}
OValueRefVector(size_t _st) : ODeleteVector< ORowSetValueDecoratorRef >(_st)
{
- for(OValueRefVector::Vector::iterator aIter = get().begin() ; aIter != get().end() ;++aIter)
- *aIter = new ORowSetValueDecorator;
+ for (auto & elem : get())
+ elem = new ORowSetValueDecorator;
}
};
More information about the Libreoffice-commits
mailing list