summaryrefslogtreecommitdiff
path: root/vcl/source/control
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-10-22 14:35:31 +0200
committerMichael Stahl <mstahl@redhat.com>2013-10-22 14:42:17 +0200
commitdd28837249088bf6e6ec11ed01a01be6f1774985 (patch)
tree452a88ea26e395f846df690472147898dd999036 /vcl/source/control
parent61027a637760087ee716f64ae0f216ef2a640108 (diff)
vcl: mark more Image constructors as "explicit"
Change-Id: If59d7c75c89a102a573738d15d8593cb8ac5c486
Diffstat (limited to 'vcl/source/control')
-rw-r--r--vcl/source/control/throbber.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/vcl/source/control/throbber.cxx b/vcl/source/control/throbber.cxx
index bc4063f6475e..b1be3c353eee 100644
--- a/vcl/source/control/throbber.cxx
+++ b/vcl/source/control/throbber.cxx
@@ -204,11 +204,10 @@ void Throbber::setImageList( ::std::vector< Image > const& i_images )
void Throbber::setImageList( const Sequence< Reference< XGraphic > >& rImageList )
{
::std::vector< Image > aImages( rImageList.getLength() );
- ::std::copy(
- rImageList.getConstArray(),
- rImageList.getConstArray() + rImageList.getLength(),
- aImages.begin()
- );
+ for (sal_Int32 i = 0; i < rImageList.getLength(); ++i)
+ {
+ aImages[i] = Image(rImageList[i]);
+ }
setImageList( aImages );
}