diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-09 09:22:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-10 06:28:22 +0000 |
commit | b0229855057ed4d73e73ecd8c501a4564f2237ce (patch) | |
tree | 05a3e4eea3ea9584699063ed9b726d466f3a8839 /sw/inc | |
parent | bce35b8e13b0d82ba54bf3d380f448dad0ee13bb (diff) |
loplugin:unusedfields
Change-Id: I9611511cb3480734dea3c3cbaf0d659071366ad1
Reviewed-on: https://gerrit.libreoffice.org/32873
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/unocrsr.hxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sw/inc/unocrsr.hxx b/sw/inc/unocrsr.hxx index 55a91ccc3c80..f0a5ca36d33e 100644 --- a/sw/inc/unocrsr.hxx +++ b/sw/inc/unocrsr.hxx @@ -117,17 +117,16 @@ namespace sw { public: UnoCursorPointer() - : m_pCursor(nullptr), m_bSectionRestricted(false) - {} - UnoCursorPointer(std::shared_ptr<SwUnoCursor> pCursor, bool bSectionRestricted=false) - : m_pCursor(pCursor), m_bSectionRestricted(bSectionRestricted) + : m_pCursor(nullptr) + {} + UnoCursorPointer(std::shared_ptr<SwUnoCursor> pCursor) + : m_pCursor(pCursor) { StartListening(m_pCursor->m_aNotifier); } UnoCursorPointer(const UnoCursorPointer& rOther) : SfxListener() , m_pCursor(rOther.m_pCursor) - , m_bSectionRestricted(rOther.m_bSectionRestricted) { if(m_pCursor) StartListening(m_pCursor->m_aNotifier); @@ -172,7 +171,6 @@ namespace sw } private: std::shared_ptr<SwUnoCursor> m_pCursor; - const bool m_bSectionRestricted; }; } #endif |