sd, svx: Return new annotation instead of using out param
commitb7ba358d48c1419142f88b8121b848113969eaaf
authorMichael Weghorn <m.weghorn@posteo.de>
Thu, 2 May 2024 15:12:55 +0000 (2 17:12 +0200)
committerMichael Weghorn <m.weghorn@posteo.de>
Fri, 3 May 2024 06:11:53 +0000 (3 08:11 +0200)
treeef74f55944cdacea87b3ec0b71bc56eb1bc54abd
parent0c98269868a63b308d238d14e0c324a5e5d26dde
sd, svx: Return new annotation instead of using out param

Let `SdrPage::createAnnotation` et al. return the newly
created annotation rather than using an out parameter,
which makes this more straightforward.

Change-Id: Iee0561859756522ef33680c2cc9b492541a31d5e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167019
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
include/svx/svdpage.hxx
sd/inc/Annotation.hxx
sd/inc/sdpage.hxx
sd/source/core/annotations/Annotation.cxx
sd/source/core/sdpage2.cxx
sd/source/filter/pdf/sdpdffilter.cxx
sd/source/ui/annotations/annotationmanager.cxx
sd/source/ui/unoidl/unopage.cxx