summaryrefslogtreecommitdiff
path: root/basctl/source/basicide/baside2b.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-03-07 19:43:34 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-03-07 19:44:04 +0100
commitab78f801e0d1f4dc4a9346477cc6979893996aee (patch)
tree1165fc20630b78e5a72d3420f2bc2ab1595d3992 /basctl/source/basicide/baside2b.cxx
parent4575d7cf657ae291c427c2318eb4600cec2f12b7 (diff)
loplugin:loopvartoosmall
Change-Id: Ia8c57fb69873d57c3271a8f6d497fecec3db1899
Diffstat (limited to 'basctl/source/basicide/baside2b.cxx')
-rw-r--r--basctl/source/basicide/baside2b.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index a82d57c5266f..c02bac26d0f2 100644
--- a/basctl/source/basicide/baside2b.cxx
+++ b/basctl/source/basicide/baside2b.cxx
@@ -2891,12 +2891,12 @@ UnoTypeCodeCompletetor::UnoTypeCodeCompletetor( const std::vector< OUString >& a
return;
}
- unsigned int j = 1;//start from aVect[1]: aVect[0] is the variable name
+ auto j = aVect.begin() + 1;//start from aVect[1]: aVect[0] is the variable name
OUString sMethName;
- while( j != aVect.size() )
+ while( j != aVect.end() )
{
- sMethName = aVect[j];
+ sMethName = *j;
if( CodeCompleteOptions::IsExtendedTypeDeclaration() )
{