[Libreoffice-commits] core.git: drawinglayer/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Sun Mar 26 01:28:08 UTC 2017
drawinglayer/source/animation/animationtiming.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 49f8917cd4c10685645128768a2dc63043a7b398
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Sun Mar 26 03:25:58 2017 +0200
fix loplugin:loopvartoosmall
Change-Id: I4fa577920565840edd5b37c673e5c8eb42da7ed7
diff --git a/drawinglayer/source/animation/animationtiming.cxx b/drawinglayer/source/animation/animationtiming.cxx
index 683c5f5b830c..44210b9567c6 100644
--- a/drawinglayer/source/animation/animationtiming.cxx
+++ b/drawinglayer/source/animation/animationtiming.cxx
@@ -161,14 +161,14 @@ namespace drawinglayer
sal_uInt32 AnimationEntryList::impGetIndexAtTime(double fTime, double &rfAddedTime) const
{
- sal_uInt32 nIndex(0L);
+ size_t nIndex(0L);
while(nIndex < maEntries.size() && basegfx::fTools::lessOrEqual(rfAddedTime + maEntries[nIndex]->getDuration(), fTime))
{
rfAddedTime += maEntries[nIndex++]->getDuration();
}
- return nIndex;
+ return sal_uInt32(nIndex);
}
AnimationEntryList::AnimationEntryList()
More information about the Libreoffice-commits
mailing list