From dd28837249088bf6e6ec11ed01a01be6f1774985 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 22 Oct 2013 14:35:31 +0200 Subject: vcl: mark more Image constructors as "explicit" Change-Id: If59d7c75c89a102a573738d15d8593cb8ac5c486 --- include/vcl/image.hxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include/vcl/image.hxx') diff --git a/include/vcl/image.hxx b/include/vcl/image.hxx index 912ecb916306..399bbe034eff 100644 --- a/include/vcl/image.hxx +++ b/include/vcl/image.hxx @@ -51,13 +51,13 @@ class VCL_DLLPUBLIC Image public: Image(); - Image( const ResId& rResId ); + explicit Image( const ResId& rResId ); Image( const Image& rImage ); - Image( const BitmapEx& rBitmapEx ); - Image( const Bitmap& rBitmap ); + explicit Image( const BitmapEx& rBitmapEx ); + explicit Image( const Bitmap& rBitmap ); Image( const Bitmap& rBitmap, const Bitmap& rMaskBitmap ); Image( const Bitmap& rBitmap, const Color& rColor ); - Image( const ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic >& rxGraphic ); + explicit Image( const ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic >& rxGraphic ); explicit Image( const OUString &rPNGFileUrl ); ~Image(); @@ -83,8 +83,8 @@ private: class VCL_DLLPUBLIC ImageList { public: - ImageList( sal_uInt16 nInit = 8, sal_uInt16 nGrow = 4 ); - ImageList( const ResId& rResId ); + explicit ImageList( sal_uInt16 nInit = 8, sal_uInt16 nGrow = 4 ); + explicit ImageList( const ResId& rResId ); ImageList( const ::std::vector< OUString >& rNameVector, const OUString& rPrefix, const Color* pMaskColor = NULL ); -- cgit