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/vcl/graph.hxx | |
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/vcl/graph.hxx')
-rw-r--r-- | include/vcl/graph.hxx | 4 |
1 files changed, 2 insertions, 2 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; |