From 389bf9e196aa7b783a325d7c00d41d943511d5ba Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Tue, 24 Mar 2015 14:02:51 +0900 Subject: cleanup pngwrite, use const std::unique_ptr for pImpl Change-Id: I7c9941731789be3553d473d64716484bfceaf8b4 --- include/vcl/pngwrite.hxx | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'include/vcl') diff --git a/include/vcl/pngwrite.hxx b/include/vcl/pngwrite.hxx index dfdd84667b74..bb32b2e0173c 100644 --- a/include/vcl/pngwrite.hxx +++ b/include/vcl/pngwrite.hxx @@ -26,33 +26,28 @@ #include #include - -// - PNGWriter - - - namespace vcl { class PNGWriterImpl; class VCL_DLLPUBLIC PNGWriter { - PNGWriterImpl* mpImpl; + const std::unique_ptr mpImpl; public: - explicit PNGWriter( const BitmapEx&, - const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >* pFilterData = NULL ); + explicit PNGWriter(const BitmapEx&, const css::uno::Sequence* pFilterData = NULL); ~PNGWriter(); - bool Write( SvStream& rStm ); + bool Write(SvStream& rStream); // additional method to be able to modify all chunk before they are stored struct ChunkData { sal_uInt32 nType; - std::vector< sal_uInt8 > aData; + std::vector aData; }; - std::vector< vcl::PNGWriter::ChunkData >& GetChunks(); + std::vector& GetChunks(); }; } -- cgit