summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-06-02 11:44:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-06-02 13:12:59 +0200
commitf421c3fa72d85f484f136264917e8d482339150e (patch)
treeef32af64d926db1285d855acd1c476cd1555cf77 /svx
parent0806a753c7cb35507f5a76004515eb9031c49725 (diff)
this is not worth warning about
calling code seems to think it's quite fine to do, and is happy with a nullptr return Change-Id: Ia003364ad91a56f2f80ada3076a69d79b30e9c35 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116573 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdmodel.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx
index 14d2242cb1c5..e8044ec2fda2 100644
--- a/svx/source/svdraw/svdmodel.cxx
+++ b/svx/source/svdraw/svdmodel.cxx
@@ -1809,13 +1809,11 @@ void SdrModel::WriteUserDataSequence(css::uno::Sequence < css::beans::PropertyVa
const SdrPage* SdrModel::GetPage(sal_uInt16 nPgNum) const
{
- DBG_ASSERT(nPgNum < maPages.size(), "SdrModel::GetPage: Access out of range (!)");
return nPgNum < maPages.size() ? maPages[nPgNum].get() : nullptr;
}
SdrPage* SdrModel::GetPage(sal_uInt16 nPgNum)
{
- DBG_ASSERT(nPgNum < maPages.size(), "SdrModel::GetPage: Access out of range (!)");
return nPgNum < maPages.size() ? maPages[nPgNum].get() : nullptr;
}