summaryrefslogtreecommitdiff
path: root/include/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-05-31 09:49:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-05-31 18:32:39 +0200
commit21ad3e6cbdf9568c1152a2eab8178e4219e40c33 (patch)
tree2d18a74a588e1f1c2c688873acf4e66f5b90f12c /include/editeng
parent962bc9059e875f98e244b584c582f5b1674106b9 (diff)
EditPosition does not need to be allocated separately
it's just two pointers big Change-Id: Ie2d71f4530fa92a3d125446a6c45035e88617b97 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116473 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/editeng')
-rw-r--r--include/editeng/svxrtf.hxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/editeng/svxrtf.hxx b/include/editeng/svxrtf.hxx
index a711f79fd8ed..42198a7acb72 100644
--- a/include/editeng/svxrtf.hxx
+++ b/include/editeng/svxrtf.hxx
@@ -63,13 +63,11 @@ private:
public:
EditPosition(EditEngine* pIEE, EditSelection* pSel);
+ EditPosition(const EditPosition &) = default;
sal_Int32 GetNodeIdx() const;
sal_Int32 GetCntIdx() const;
- // clone
- std::unique_ptr<EditPosition> Clone() const;
-
// clone NodeIndex
std::unique_ptr<EditNodeIdx> MakeNodeIdx() const;
};
@@ -170,7 +168,7 @@ class EDITENG_DLLPUBLIC SvxRTFParser : public SvRTFParser
RTFPardAttrMapIds aPardMap;
std::vector<sal_uInt16> aWhichMap;
- std::unique_ptr<EditPosition> pInsPos;
+ std::optional<EditPosition> mxInsertPosition;
SfxItemPool* pAttrPool;
std::optional<Color> mxDefaultColor;
std::unique_ptr<vcl::Font> pDfltFont;