diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-08-06 09:37:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-06 12:04:43 +0200 |
commit | 36333de160c88a3190d799c031b16e1ef6bcaa86 (patch) | |
tree | 4e0859e1960800b4c45921966438d2e695b9299f /sw/inc | |
parent | 28c4c72a4e81821d9e567757725937f74a6d114f (diff) |
no need to allocate on heap here
Change-Id: I889690c136f200cffd0398254ec9935e2027a32c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137893
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/ndarr.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/inc/ndarr.hxx b/sw/inc/ndarr.hxx index 683cfde170bf..1b1227549583 100644 --- a/sw/inc/ndarr.hxx +++ b/sw/inc/ndarr.hxx @@ -25,6 +25,7 @@ #include <limits> #include <vector> #include <memory> +#include <optional> #include "bparr.hxx" #include "ndtyp.hxx" @@ -260,7 +261,8 @@ public: SwTextFormatColl* pTextColl, SwUndoTextToTable* pUndo ); - std::unique_ptr<SwNodeRange> ExpandRangeForTableBox(const SwNodeRange & rRange); + void ExpandRangeForTableBox(const SwNodeRange & rRange, + std::optional<SwNodeRange>& rExpandedRange); /// create a table from a vector of NodeRanges - API support SwTableNode* TextToTable( const TableRanges_t& rTableNodes, |