summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-12-03 12:49:56 +0200
committerNoel Grandin <noel@peralex.com>2015-12-03 13:57:23 +0200
commit93122eb06abf77252f01a8a255fc28348efca911 (patch)
treeafc40cb1b802c974d259f8f98e1d6513d284fe56 /toolkit
parent2b17ec2175e288b92044092166d5b885978cecff (diff)
uno::Sequence->std::vector in vcl::Throbber
Change-Id: I9240cd2240940e03e895a7544c9f51a29b048355
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/animatedimagespeer.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/toolkit/source/awt/animatedimagespeer.cxx b/toolkit/source/awt/animatedimagespeer.cxx
index 14876ea27730..fa9707628d54 100644
--- a/toolkit/source/awt/animatedimagespeer.cxx
+++ b/toolkit/source/awt/animatedimagespeer.cxx
@@ -244,12 +244,12 @@ namespace toolkit
}
// found a set?
- Sequence< Reference< XGraphic > > aImages;
+ std::vector< Image > aImages;
if ( ( nPreferredSet >= 0 ) && ( size_t( nPreferredSet ) < nImageSetCount ) )
{
// => set the images
::std::vector< CachedImage > const& rImageSet( i_data.aCachedImageSets[ nPreferredSet ] );
- aImages.realloc( rImageSet.size() );
+ aImages.resize( rImageSet.size() );
sal_Int32 imageIndex = 0;
for ( ::std::vector< CachedImage >::const_iterator cachedImage = rImageSet.begin();
cachedImage != rImageSet.end();
@@ -257,7 +257,7 @@ namespace toolkit
)
{
lcl_ensureImage_throw( xGraphicProvider, isHighContrast, *cachedImage );
- aImages[ imageIndex ] = cachedImage->xGraphic;
+ aImages[ imageIndex ] = Image(cachedImage->xGraphic);
}
}
pThrobber->setImageList( aImages );