xmloff/source/core/xmlmultiimagehelper.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit d9e1313144fee2cfaf402b724654ef3902bf4970 Author: Stephan Bergmann <[email protected]> Date: Sun Feb 26 21:51:40 2017 +0100 loplugin:loopvartoosmall Change-Id: If080ee083a7531cc744ac35fc4ebd24d037003dc diff --git a/xmloff/source/core/xmlmultiimagehelper.cxx b/xmloff/source/core/xmlmultiimagehelper.cxx index 3b58451..4397d5a 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(); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
