[Libreoffice-commits] core.git: xmloff/source
Stephan Bergmann
sbergman at redhat.com
Sun Feb 26 20:52:11 UTC 2017
xmloff/source/core/xmlmultiimagehelper.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit d9e1313144fee2cfaf402b724654ef3902bf4970
Author: Stephan Bergmann <sbergman at redhat.com>
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();
More information about the Libreoffice-commits
mailing list