summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-30 10:51:20 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-30 17:13:39 +0200
commitc26807a9e9ba653712e293a7b34e25686f4bb43d (patch)
tree208d402b61ccac6ab097aa75aa9353dbfcf80b82 /sw/source/core/unocore
parent31342a1bda26f4e3dd29274dafd306fd0a9e7047 (diff)
SwDocFac::GetDoc can return a reference
and remove discovered redundant null checks Change-Id: I200fd0ad61b307c78a354b7a6929b70045fee488 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103690 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/unotext.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unotext.cxx b/sw/source/core/unocore/unotext.cxx
index 614afccfd459..3b38b63871c4 100644
--- a/sw/source/core/unocore/unotext.cxx
+++ b/sw/source/core/unocore/unotext.cxx
@@ -131,7 +131,8 @@ const SwDoc * SwXText::GetDoc() const
{
return m_pImpl->m_pDoc;
}
- SwDoc * SwXText::GetDoc()
+
+SwDoc * SwXText::GetDoc()
{
return m_pImpl->m_pDoc;
}