[Libreoffice-commits] core.git: sw/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Wed Jun 23 15:48:27 UTC 2021
sw/source/core/inc/DocumentListsManager.hxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit e33742b64ab325dbc596b4fbdaf229ff91e11e93
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Jun 23 12:50:25 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Jun 23 17:47:40 2021 +0200
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 at redhat.com>
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;
More information about the Libreoffice-commits
mailing list