diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-21 14:58:14 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-22 08:21:12 +0100 |
commit | 05044640531055c86b34f1c6ec8055c8a0ca3df8 (patch) | |
tree | bd5a756138f618ee54f48f3f4df8d07ccd905e67 /sw/inc/crsrsh.hxx | |
parent | 03fcb4aae62a9403f22ec3671b61555419d02514 (diff) |
use boost::optional for OUString
instead of storing on heap
Change-Id: I4ca2bb58ec4f71b161c9e6081f5e456de54d8153
Reviewed-on: https://gerrit.libreoffice.org/65537
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/crsrsh.hxx')
-rw-r--r-- | sw/inc/crsrsh.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/crsrsh.hxx b/sw/inc/crsrsh.hxx index a5c8e1acc4d2..423ed92fb1b4 100644 --- a/sw/inc/crsrsh.hxx +++ b/sw/inc/crsrsh.hxx @@ -132,7 +132,7 @@ bool ReplaceImpl(SwPaM & rCursor, OUString const& rReplacement, bool const bRegExp, SwDoc & rDoc, SwRootFrame const*const pLayout); /// Helperfunction to resolve backward references in regular expressions -OUString *ReplaceBackReferences(const i18nutil::SearchOptions2& rSearchOpt, +boost::optional<OUString> ReplaceBackReferences(const i18nutil::SearchOptions2& rSearchOpt, SwPaM* pPam, SwRootFrame const* pLayout ); bool GetRanges(std::vector<std::shared_ptr<SwUnoCursor>> & rRanges, |