summaryrefslogtreecommitdiffstats
path: root/drawinglayer
diff options
context:
space:
mode:
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())
{