diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-03-24 14:02:51 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-03-27 10:45:15 +0900 |
commit | 389bf9e196aa7b783a325d7c00d41d943511d5ba (patch) | |
tree | dbef2ec1503a174916142b25d6670a7d5868420a /include/vcl | |
parent | 4dfa19d61331bab284e188422fbc95baf814b602 (diff) |
cleanup pngwrite, use const std::unique_ptr for pImpl
Change-Id: I7c9941731789be3553d473d64716484bfceaf8b4
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/pngwrite.hxx | 15 |
1 files changed, 5 insertions, 10 deletions
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 <vcl/bitmapex.hxx> #include <vector> - -// - PNGWriter - - - namespace vcl { class PNGWriterImpl; class VCL_DLLPUBLIC PNGWriter { - PNGWriterImpl* mpImpl; + const std::unique_ptr<PNGWriterImpl> 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<css::beans::PropertyValue>* 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<sal_uInt8> aData; }; - std::vector< vcl::PNGWriter::ChunkData >& GetChunks(); + std::vector<vcl::PNGWriter::ChunkData>& GetChunks(); }; } |