summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-09-01 11:26:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-09-01 15:01:04 +0200
commit526c7c72fad67a50e4bc14b7484cd4043387ca52 (patch)
tree99fe9e0396dc1b1b490a201b4bcd5705974b1171 /sd/source
parent98d70f1ed97218da0657ff9f1e83b782a0f6a22d (diff)
cid#1500519 Using a moved object
make this more clear, expected to be null at this point Change-Id: I85531e0df4e43e59b178dbab8cede1d0de1927d1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139155 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/view/OutlinerIterator.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sd/source/ui/view/OutlinerIterator.cxx b/sd/source/ui/view/OutlinerIterator.cxx
index 2d668468263d..57e912c1fcdb 100644
--- a/sd/source/ui/view/OutlinerIterator.cxx
+++ b/sd/source/ui/view/OutlinerIterator.cxx
@@ -675,6 +675,7 @@ void ViewIteratorImpl::Reverse()
// Move iterator to the current object.
::unotools::WeakReference<SdrObject> xObject = std::move(maPosition.mxObject);
+ maPosition.mxObject = nullptr;
if (!mpObjectIterator)
return;