summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-02-26 21:51:40 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-02-26 21:51:40 +0100
commitd9e1313144fee2cfaf402b724654ef3902bf4970 (patch)
treec3c881be3a34036605a6342678c874552dc6f5e8 /xmloff
parent6cb75e862cb6d7baaca4e7f553a4afe316281991 (diff)
loplugin:loopvartoosmall
Change-Id: If080ee083a7531cc744ac35fc4ebd24d037003dc
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/xmlmultiimagehelper.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/core/xmlmultiimagehelper.cxx b/xmloff/source/core/xmlmultiimagehelper.cxx
index 3b58451840ba..4397d5ab144a 100644
--- a/xmloff/source/core/xmlmultiimagehelper.cxx
+++ b/xmloff/source/core/xmlmultiimagehelper.cxx
@@ -89,10 +89,10 @@ SvXMLImportContextRef MultiImageImportHelper::solveMultipleImages()
{
// multiple child contexts were imported, decide which is the most valuable one
// and remove the rest
- sal_uInt32 nIndexOfPreferred(maImplContextVector.size());
- sal_uInt32 nBestQuality(0), a(0);
+ std::vector<SvXMLImportContextRef>::size_type nIndexOfPreferred(maImplContextVector.size());
+ sal_uInt32 nBestQuality(0);
- for(a = 0; a < maImplContextVector.size(); a++)
+ for(std::vector<SvXMLImportContextRef>::size_type a = 0; a < maImplContextVector.size(); a++)
{
const OUString aStreamURL(getGraphicURLFromImportContext(*maImplContextVector[a].get()));
const sal_uInt32 nNewQuality(getQualityIndex(aStreamURL));
@@ -116,7 +116,7 @@ SvXMLImportContextRef MultiImageImportHelper::solveMultipleImages()
maImplContextVector.erase(aRemove);
// remove the rest from parent
- for(a = 0; a < maImplContextVector.size(); a++)
+ for(std::vector<SvXMLImportContextRef>::size_type a = 0; a < maImplContextVector.size(); a++)
{
SvXMLImportContext& rCandidate = *maImplContextVector[a].get();