diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2020-04-11 12:02:47 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2020-04-12 11:34:07 +0200 |
commit | d7a201ee95ffa10416290d8a1e0a2905664fb4ed (patch) | |
tree | 3fe26e00be8a031192440c2faaf9cefec5a5ce06 /include | |
parent | 65f5484dd7ad8036f617685f2a76e5e2c24be298 (diff) |
replace and remove VectorGraphicDataPtr typedef for the real type
There is no need to hide std::shared_ptr<VectorGraphicData> type
under an alias name. It doesn't make the code more understandble
and it usually is the exact opposite because we know with what
type we are dealing with.
Change-Id: Iec80ee99697ff2fe3a8275fc2787b5370510ebe6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92069
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/graph.hxx | 4 | ||||
-rw-r--r-- | include/vcl/vectorgraphicdata.hxx | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/include/vcl/graph.hxx b/include/vcl/graph.hxx index 6e70f66731ac..b304cfb7ac97 100644 --- a/include/vcl/graph.hxx +++ b/include/vcl/graph.hxx @@ -99,7 +99,7 @@ public: Graphic( const Bitmap& rBmp ); Graphic( const Image& rImage ); Graphic( const BitmapEx& rBmpEx ); - Graphic( const VectorGraphicDataPtr& rVectorGraphicDataPtr ); + Graphic( const std::shared_ptr<VectorGraphicData>& rVectorGraphicDataPtr ); Graphic( const Animation& rAnimation ); Graphic( const GDIMetaFile& rMtf ); Graphic( const css::uno::Reference< css::graphic::XGraphic >& rxGraphic ); @@ -202,7 +202,7 @@ public: public: - const VectorGraphicDataPtr& getVectorGraphicData() const; + const std::shared_ptr<VectorGraphicData>& getVectorGraphicData() const; /// Get the page number of the multi-page source this Graphic is rendered from. sal_Int32 getPageNumber() const; diff --git a/include/vcl/vectorgraphicdata.hxx b/include/vcl/vectorgraphicdata.hxx index 7e272602f67f..f982537da67d 100644 --- a/include/vcl/vectorgraphicdata.hxx +++ b/include/vcl/vectorgraphicdata.hxx @@ -115,8 +115,6 @@ public: bool isPrimitiveSequenceCreated() const { return mbSequenceCreated; } }; -typedef std::shared_ptr< VectorGraphicData > VectorGraphicDataPtr; - #endif // INCLUDED_VCL_VECTORGRAPHICDATA_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |