diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-06-23 12:50:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-06-23 17:47:40 +0200 |
commit | e33742b64ab325dbc596b4fbdaf229ff91e11e93 (patch) | |
tree | 92fcd54530160f3294dec2dc5a1c14b94cbfdce4 | |
parent | 86e300df241312f6152da1cfa3cb2b8c668d1df5 (diff) |
cid#1401328 Uncaught exception
Change-Id: Ie3c938992a5c1e7aab3d7ae32f4169d04225195a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117707
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sw/source/core/inc/DocumentListsManager.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/inc/DocumentListsManager.hxx b/sw/source/core/inc/DocumentListsManager.hxx index c81e40ddeb74..caab21e358d1 100644 --- a/sw/source/core/inc/DocumentListsManager.hxx +++ b/sw/source/core/inc/DocumentListsManager.hxx @@ -21,6 +21,7 @@ #define INCLUDED_SW_SOURCE_CORE_INC_DOCUMENTLISTSMANAGER_HXX #include <IDocumentListsAccess.hxx> +#include <o3tl/deleter.hxx> #include <memory> #include <unordered_map> @@ -30,7 +31,6 @@ class SwDoc; namespace sw { - class DocumentListsManager final : public IDocumentListsAccess { public: @@ -57,8 +57,9 @@ class DocumentListsManager final : public IDocumentListsAccess SwDoc& m_rDoc; + typedef std::unique_ptr<SwList, o3tl::default_delete<SwList>> SwListPtr; // container to hold the lists of the text document - std::unordered_map<OUString, std::unique_ptr<SwList>> maLists; + std::unordered_map<OUString, SwListPtr> maLists; // relation between list style and its default list std::unordered_map<OUString, SwList*> maListStyleLists; |