summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-10-28 10:36:47 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-10-30 13:30:11 +0100
commit60b1f8f6ef715ee4cb282215375188c1511ad6d6 (patch)
treeca1bf267bb7939f8b698b720b92c60db6e5399d5 /sw/source/core/unocore
parentc169edd1b3d521f3e41dba6f7b6f572de16861b9 (diff)
Related: tdf#98868 add SwDoc& member to SwTOXType
Change-Id: Ic1dc600e75cb4f6a7a0aa86714a87e3ec5658cb0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104926 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/core/unocore')
-rw-r--r--sw/source/core/unocore/unoidx.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unoidx.cxx b/sw/source/core/unocore/unoidx.cxx
index 442527ef454b..bb0782e07cfc 100644
--- a/sw/source/core/unocore/unoidx.cxx
+++ b/sw/source/core/unocore/unoidx.cxx
@@ -113,7 +113,7 @@ lcl_ReAssignTOXType(SwDoc& rDoc, SwTOXBase& rTOXBase, const OUString& rNewName)
}
if(!pNewType)
{
- SwTOXType aNewType(TOX_USER, rNewName);
+ SwTOXType aNewType(rDoc, TOX_USER, rNewName);
pNewType = rDoc.InsertTOXType( aNewType );
}
@@ -1814,7 +1814,7 @@ SwXDocumentIndexMark::attach(
}
if (!pTOXType)
{
- SwTOXType aUserType(TOX_USER, m_pImpl->m_sUserIndexName);
+ SwTOXType aUserType(*pDoc, TOX_USER, m_pImpl->m_sUserIndexName);
pTOXType = pDoc->InsertTOXType(aUserType);
}
}