summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-03-29 10:33:14 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-03-29 11:52:55 +0000
commit225ca94608243a4fa1feeba92153dd348f4da017 (patch)
treedb0707ad086623885ba00ab0e65cdd9d817f96a9 /drawinglayer
parent1672b25eb4466cac5f31481dac1140bcf07d65c4 (diff)
Propagate proper integer type out of AnimationEntryList::impGetIndexAtTime
...after 49f8917cd4c10685645128768a2dc63043a7b398 "fix loplugin:loopvartoosmall" Change-Id: I8ec284711afa2f8323462a87d30fdf4c27941b6c Reviewed-on: https://gerrit.libreoffice.org/35830 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/animation/animationtiming.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/drawinglayer/source/animation/animationtiming.cxx b/drawinglayer/source/animation/animationtiming.cxx
index 44210b9567c6..c5c39d77328f 100644
--- a/drawinglayer/source/animation/animationtiming.cxx
+++ b/drawinglayer/source/animation/animationtiming.cxx
@@ -159,16 +159,16 @@ namespace drawinglayer
}
- sal_uInt32 AnimationEntryList::impGetIndexAtTime(double fTime, double &rfAddedTime) const
+ AnimationEntryList::Entries::size_type AnimationEntryList::impGetIndexAtTime(double fTime, double &rfAddedTime) const
{
- size_t nIndex(0L);
+ Entries::size_type nIndex(0L);
while(nIndex < maEntries.size() && basegfx::fTools::lessOrEqual(rfAddedTime + maEntries[nIndex]->getDuration(), fTime))
{
rfAddedTime += maEntries[nIndex++]->getDuration();
}
- return sal_uInt32(nIndex);
+ return nIndex;
}
AnimationEntryList::AnimationEntryList()
@@ -233,7 +233,7 @@ namespace drawinglayer
if(!basegfx::fTools::equalZero(mfDuration))
{
double fAddedTime(0.0);
- const sal_uInt32 nIndex(impGetIndexAtTime(fTime, fAddedTime));
+ const auto nIndex(impGetIndexAtTime(fTime, fAddedTime));
if(nIndex < maEntries.size())
{
@@ -251,7 +251,7 @@ namespace drawinglayer
if(!basegfx::fTools::equalZero(mfDuration))
{
double fAddedTime(0.0);
- const sal_uInt32 nIndex(impGetIndexAtTime(fTime, fAddedTime));
+ const auto nIndex(impGetIndexAtTime(fTime, fAddedTime));
if(nIndex < maEntries.size())
{