Kaydet (Commit) 93122eb0 authored tarafından Noel Grandin's avatar Noel Grandin

uno::Sequence->std::vector in vcl::Throbber

Change-Id: I9240cd2240940e03e895a7544c9f51a29b048355
üst 2b17ec21
......@@ -62,7 +62,6 @@ public:
void stop();
bool isRunning() const;
void setImageList( const css::uno::Sequence< css::uno::Reference< css::graphic::XGraphic > >& ImageList );
void setImageList( ::std::vector< Image > const& i_images );
// default images
......
......@@ -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 );
......
......@@ -192,16 +192,6 @@ void Throbber::setImageList( ::std::vector< Image > const& i_images )
SetImage( aInitialImage );
}
void Throbber::setImageList( const Sequence< Reference< XGraphic > >& rImageList )
{
::std::vector< Image > aImages( rImageList.getLength() );
for (sal_Int32 i = 0; i < rImageList.getLength(); ++i)
{
aImages[i] = Image(rImageList[i]);
}
setImageList( aImages );
}
::std::vector< OUString > Throbber::getDefaultImageURLs( const ImageSet i_imageSet )
{
::std::vector< OUString > aImageURLs;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment