summaryrefslogtreecommitdiff
path: root/sw/inc/IDocumentMarkAccess.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-05-30 10:02:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-05-31 10:28:26 +0200
commit288a3c2dde611086e6aa5d7a7a15729e027ae75f (patch)
tree6a257a865fa3f29c42a241b4c5e405faa3b07fe4 /sw/inc/IDocumentMarkAccess.hxx
parentefc3412b1a86dfff56c49364efb36256d057a1e1 (diff)
no need to allocate this separately
Change-Id: Ia6ed82b67a412841e1559f385afec17da3852d7d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116399 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/IDocumentMarkAccess.hxx')
-rw-r--r--sw/inc/IDocumentMarkAccess.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/inc/IDocumentMarkAccess.hxx b/sw/inc/IDocumentMarkAccess.hxx
index e678f52605ff..3a05a2053bbe 100644
--- a/sw/inc/IDocumentMarkAccess.hxx
+++ b/sw/inc/IDocumentMarkAccess.hxx
@@ -23,6 +23,7 @@
#include <sal/types.h>
#include "IMark.hxx"
#include <memory>
+#include <optional>
class SwPaM;
struct SwPosition;
@@ -60,7 +61,7 @@ class IDocumentMarkAccess
class SW_DLLPUBLIC iterator
{
private:
- std::unique_ptr<std::vector<::sw::mark::MarkBase*>::const_iterator> m_pIter;
+ std::optional<std::vector<::sw::mark::MarkBase*>::const_iterator> m_pIter;
public:
// MarkManager implementation needs to get the real iterator