diff options
author | Armin Le Grand <Armin.Le.Grand@me.com> | 2019-05-16 11:33:38 +0200 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@me.com> | 2019-05-18 01:29:25 +0200 |
commit | 10d8682e4cf77361e0ebf68a4ea1b565f05e91a9 (patch) | |
tree | 04159e0b5992ceda41c745afb2d8a9b913f172d2 /sw/inc | |
parent | 1cbf0ee54519bf81d934609352e8a1a641d8a534 (diff) |
Adapt AutoFormatHelper to std::unique_ptr
Change-Id: I3087a7e95e73dbcda798ca62705f7941a6466ccb
Reviewed-on: https://gerrit.libreoffice.org/72401
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/tblafmt.hxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sw/inc/tblafmt.hxx b/sw/inc/tblafmt.hxx index 3d2e7e3ff1e3..be1b1f476f79 100644 --- a/sw/inc/tblafmt.hxx +++ b/sw/inc/tblafmt.hxx @@ -63,9 +63,10 @@ class SwTable; class SwBoxAutoFormat : public AutoFormatBase { +private: // Writer specific - std::shared_ptr<SvxFrameDirectionItem> m_aTextOrientation; - std::shared_ptr<SwFormatVertOrient> m_aVerticalAlignment; + std::unique_ptr<SvxFrameDirectionItem> m_aTextOrientation; + std::unique_ptr<SwFormatVertOrient> m_aVerticalAlignment; // number format OUString m_sNumFormatString; @@ -79,7 +80,8 @@ public: SwBoxAutoFormat( const SwBoxAutoFormat& rNew ); ~SwBoxAutoFormat(); - SwBoxAutoFormat& operator=(const SwBoxAutoFormat& rNew); + /// assignemt-op (still used) + SwBoxAutoFormat& operator=(const SwBoxAutoFormat& rRef); /// Comparing based of boxes backgrounds. bool operator==(const SwBoxAutoFormat& rRight); |