diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-12-28 18:43:27 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-12-28 20:16:36 +0100 |
commit | f2dafc6e2ccaee058276d8ddb02bea3c9bc095a2 (patch) | |
tree | c116096c0c11522665f2279617e317d943bd0d50 /dbaccess/source/ui/querydesign/querycontroller.cxx | |
parent | 271a663d2f098f3f665cab6da2e13b265a7eab93 (diff) |
Use for-range loops in dbaccess
Change-Id: I0be3aba4f03dcaba188670548901e4aef59c5ec0
Reviewed-on: https://gerrit.libreoffice.org/47148
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'dbaccess/source/ui/querydesign/querycontroller.cxx')
-rw-r--r-- | dbaccess/source/ui/querydesign/querycontroller.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/querydesign/querycontroller.cxx b/dbaccess/source/ui/querydesign/querycontroller.cxx index aadc8f0fe7fa..32bf474fad65 100644 --- a/dbaccess/source/ui/querydesign/querycontroller.cxx +++ b/dbaccess/source/ui/querydesign/querycontroller.cxx @@ -1643,8 +1643,8 @@ static OUString concatComment( const OUString& rQuery, const std::vector< Commen // Obtaining the needed size once should be faster than reallocating. // Also add a blank or linefeed for each comment. sal_Int32 nBufSize = nLen + nComments; - for (std::vector< CommentStrip >::const_iterator it( rComments.begin()); it != rComments.end(); ++it) - nBufSize += (*it).maComment.getLength(); + for (auto const& comment : rComments) + nBufSize += comment.maComment.getLength(); OUStringBuffer aBuf( nBufSize ); sal_Int32 nIndBeg = 0; sal_Int32 nIndLF = rQuery.indexOf('\n'); |