summaryrefslogtreecommitdiff
path: root/framework
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 /framework
parent61027a637760087ee716f64ae0f216ef2a640108 (diff)
vcl: mark more Image constructors as "explicit"
Change-Id: If59d7c75c89a102a573738d15d8593cb8ac5c486
Diffstat (limited to 'framework')
-rw-r--r--framework/source/uiconfiguration/imagemanagerimpl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/uiconfiguration/imagemanagerimpl.cxx b/framework/source/uiconfiguration/imagemanagerimpl.cxx
index e04ba8adc8b4..2bf2029c3466 100644
--- a/framework/source/uiconfiguration/imagemanagerimpl.cxx
+++ b/framework/source/uiconfiguration/imagemanagerimpl.cxx
@@ -976,14 +976,14 @@ throw ( ::com::sun::star::lang::IllegalArgumentException,
sal_uInt16 nPos = pImageList->GetImagePos( aCommandURLSequence[i] );
if ( nPos == IMAGELIST_IMAGE_NOTFOUND )
{
- pImageList->AddImage( aCommandURLSequence[i], xGraphic );
+ pImageList->AddImage(aCommandURLSequence[i], Image(xGraphic));
if ( !pInsertedImages )
pInsertedImages = new CmdToXGraphicNameAccess();
pInsertedImages->addElement( aCommandURLSequence[i], xGraphic );
}
else
{
- pImageList->ReplaceImage( aCommandURLSequence[i], xGraphic );
+ pImageList->ReplaceImage(aCommandURLSequence[i], Image(xGraphic));
if ( !pReplacedImages )
pReplacedImages = new CmdToXGraphicNameAccess();
pReplacedImages->addElement( aCommandURLSequence[i], xGraphic );