summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-02-27 15:05:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-27 15:03:51 +0100
commit9ab2284660857f52efc9b68b9d2dd8ea768d6916 (patch)
tree3b4ff1300fd751a1cc2eb889d542d7d45b8193aa /sw/inc
parent79da395803e2dc2d998eecc43338a6b235f91df4 (diff)
tdf#140528 Crash in writer when switching from Numbering to Position
regression from commit e5ecb998fd78137aec32ad2cc996eaa4bb3e499d Date: Mon Dec 5 09:52:43 2016 +0000 avoid coverity#1371269 Missing move assignment operator rather write this code in a more obvious fashion, and bypass the use of the very weird operator= method, which barely copies anything at all. Change-Id: I548d8f73224c2625ed6389861551038b18396b0f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111677 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/numrule.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/inc/numrule.hxx b/sw/inc/numrule.hxx
index a6136a4db141..fd333da0d864 100644
--- a/sw/inc/numrule.hxx
+++ b/sw/inc/numrule.hxx
@@ -136,7 +136,7 @@ private:
bool mbCountPhantoms;
bool mbUsedByRedline; /// it needs to export as part of tracked numbering change
- const SvxNumberFormat::SvxNumPositionAndSpaceMode meDefaultNumberFormatPositionAndSpaceMode;
+ SvxNumberFormat::SvxNumPositionAndSpaceMode meDefaultNumberFormatPositionAndSpaceMode;
OUString msDefaultListId;
std::shared_ptr<SfxGrabBagItem> mpGrabBagItem; ///< Style InteropGrabBag.
@@ -153,6 +153,8 @@ public:
bool operator==( const SwNumRule& ) const;
bool operator!=( const SwNumRule& r ) const { return !(*this == r); }
+ void Reset( const OUString& rName );
+
const SwNumFormat* GetNumFormat( sal_uInt16 i ) const;
const SwNumFormat& Get( sal_uInt16 i ) const;