summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/impgraph.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-07-27 12:26:38 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-07-27 13:32:53 +0100
commit81047eaebc0e25ff926bf944c57e082a8727c7f2 (patch)
treeaa7d706ce0ed855c00e31a711c5c762b9bf62a0e /vcl/source/gdi/impgraph.cxx
parentae11dafc89a1f748233500ea0fd89cff4ef7378c (diff)
make animation loop sal_uInt32 consistently
all this foo is ultimately animated gifs and the count there is limited to unsigned 16bit Change-Id: Ib6e6dde7355f3619bb7735743e686e6338a235ee
Diffstat (limited to 'vcl/source/gdi/impgraph.cxx')
-rw-r--r--vcl/source/gdi/impgraph.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx
index e782e71ebff3..812e504880ab 100644
--- a/vcl/source/gdi/impgraph.cxx
+++ b/vcl/source/gdi/impgraph.cxx
@@ -947,12 +947,11 @@ Link<Animation*,void> ImpGraphic::ImplGetAnimationNotifyHdl() const
return aLink;
}
-sal_uLong ImpGraphic::ImplGetAnimationLoopCount() const
+sal_uInt32 ImpGraphic::ImplGetAnimationLoopCount() const
{
- return( mpAnimation ? mpAnimation->GetLoopCount() : 0UL );
+ return( mpAnimation ? mpAnimation->GetLoopCount() : 0 );
}
-
void ImpGraphic::ImplSetContext( const std::shared_ptr<GraphicReader>& pReader )
{
mpContext = pReader;