diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-26 21:51:40 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-26 21:51:40 +0100 |
commit | d9e1313144fee2cfaf402b724654ef3902bf4970 (patch) | |
tree | c3c881be3a34036605a6342678c874552dc6f5e8 /xmloff/source/core | |
parent | 6cb75e862cb6d7baaca4e7f553a4afe316281991 (diff) |
loplugin:loopvartoosmall
Change-Id: If080ee083a7531cc744ac35fc4ebd24d037003dc
Diffstat (limited to 'xmloff/source/core')
-rw-r--r-- | xmloff/source/core/xmlmultiimagehelper.cxx | 8 |
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(); |