diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-28 10:03:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-05 07:26:46 +0100 |
commit | 3b8cd4f95d214e79ffc7e69af094ed0df1cc4788 (patch) | |
tree | 2375ef3a5012bbe9cbeb4fb9a0dc1564a8745c0c /svgio/inc | |
parent | a7205fd02331a8c5710a8ea44ed6157dbb6120cf (diff) |
loplugin:useuniqueptr in SvgNode
Change-Id: I7ab382bd90050302c24464eed645d20a435dbd63
Reviewed-on: https://gerrit.libreoffice.org/50657
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svgio/inc')
-rw-r--r-- | svgio/inc/svgnode.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svgio/inc/svgnode.hxx b/svgio/inc/svgnode.hxx index fd4e45c5ccc4..7fd8129a48b8 100644 --- a/svgio/inc/svgnode.hxx +++ b/svgio/inc/svgnode.hxx @@ -91,7 +91,7 @@ namespace svgio const SvgNode* mpAlternativeParent; /// sub hierarchy - SvgNodeVector maChildren; + std::vector< std::unique_ptr<SvgNode> > maChildren; /// Id svan value std::unique_ptr<OUString> mpId; @@ -111,7 +111,7 @@ namespace svgio ::std::vector< const SvgStyleAttributes* > maCssStyleVector; /// possible local CssStyle, e.g. style="fill:red; stroke:red;" - SvgStyleAttributes* mpLocalCssStyle; + std::unique_ptr<SvgStyleAttributes> mpLocalCssStyle; // flag if maCssStyleVector is already computed (done only once) bool mbCssStyleVectorBuilt : 1; @@ -152,7 +152,7 @@ namespace svgio SVGToken getType() const { return maType; } const SvgDocument& getDocument() const { return mrDocument; } const SvgNode* getParent() const { if(mpAlternativeParent) return mpAlternativeParent; return mpParent; } - const SvgNodeVector& getChildren() const { return maChildren; } + const std::vector< std::unique_ptr<SvgNode> > & getChildren() const { return maChildren; } /// InfoProvider support for %, em and ex values virtual const basegfx::B2DRange getCurrentViewPort() const override; |