diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-06 12:47:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-06 14:20:06 +0200 |
commit | bfc298d02ca6275588d5897d97ced9498a3e91aa (patch) | |
tree | 45f290e8a753a2e382b940ed7f3c43b2bac959cd /svx/source/svdraw/svdopage.cxx | |
parent | ee9cb297c583cb5a2e6ed388af31fffc79f282ca (diff) |
loplugin:flatten in svx/svdraw
Change-Id: I8379e5ebaee2090d2b4dbd05d55b55000915cd7c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100233
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/svdraw/svdopage.cxx')
-rw-r--r-- | svx/source/svdraw/svdopage.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/svx/source/svdraw/svdopage.cxx b/svx/source/svdraw/svdopage.cxx index aa91331b5393..9b48e34436ef 100644 --- a/svx/source/svdraw/svdopage.cxx +++ b/svx/source/svdraw/svdopage.cxx @@ -97,23 +97,23 @@ SdrPageObj::~SdrPageObj() void SdrPageObj::SetReferencedPage(SdrPage* pNewPage) { - if(mpShownPage != pNewPage) - { - if(mpShownPage) - { - mpShownPage->RemovePageUser(*this); - } + if(mpShownPage == pNewPage) + return; - mpShownPage = pNewPage; + if(mpShownPage) + { + mpShownPage->RemovePageUser(*this); + } - if(mpShownPage) - { - mpShownPage->AddPageUser(*this); - } + mpShownPage = pNewPage; - SetChanged(); - BroadcastObjectChange(); + if(mpShownPage) + { + mpShownPage->AddPageUser(*this); } + + SetChanged(); + BroadcastObjectChange(); } // #i96598# |