remove some manual ref-counting

Desktop / LibreOffice - Noel Grandin [peralex.com] - 24 May 2016 01:54 UTC

triggered when I noticed a class doing acquire() in the constructor and then release() in the destructor.

found mostly by git grep -n -B5 -e '->release()'

Change-Id: Ie1abeaed75c1f861df185e3bde680272dbadc97f Reviewed-on: https://gerrit.libreoffice.org/25363

111de43 remove some manual ref-counting
comphelper/source/misc/accessiblewrapper.cxx | 22 +--
connectivity/source/drivers/dbase/DIndexIter.cxx | 19 ++-
connectivity/source/drivers/mork/MConnection.cxx | 7 +-
connectivity/source/drivers/mork/MConnection.hxx | 4 +-
.../source/drivers/postgresql/pq_connection.cxx | 10 +-
connectivity/source/inc/dbase/DIndexIter.hxx | 5 +-
editeng/source/xml/editsource.hxx | 2 +-
editeng/source/xml/xmltxtexp.cxx | 34 +----
extensions/source/bibliography/framectr.cxx | 22 ++-
extensions/source/bibliography/framectr.hxx | 2 +-
framework/Library_fwi.mk | 1 +
framework/source/fwe/dispatch/interaction.cxx | 10 +-
include/comphelper/accessiblewrapper.hxx | 3 +-
include/framework/interaction.hxx | 2 +-
include/sfx2/brokenpackageint.hxx | 4 +-
include/ucbhelper/proxydecider.hxx | 2 +-
reportdesign/inc/RptModel.hxx | 4 +-
reportdesign/source/core/sdr/RptModel.cxx | 10 +-
sc/inc/datauno.hxx | 6 +-
sc/inc/dptabsrc.hxx | 6 +-
sc/source/core/data/dptabsrc.cxx | 35 ++---
sc/source/ui/drawfunc/drtxtob.cxx | 16 +-
sc/source/ui/inc/drtxtob.hxx | 2 +-
sc/source/ui/inc/editsh.hxx | 2 +-
sc/source/ui/unoobj/datauno.cxx | 46 +++---
sc/source/ui/view/editsh.cxx | 16 +-
sd/source/ui/inc/DrawViewShell.hxx | 2 +-
sd/source/ui/inc/OutlineViewShell.hxx | 2 +-
sd/source/ui/view/drviews7.cxx | 7 +-
sd/source/ui/view/drviewsa.cxx | 10 +-
sd/source/ui/view/outlnvsh.cxx | 15 +-
sfx2/source/appl/appuno.cxx | 14 +-
stoc/source/defaultregistry/defaultregistry.cxx | 158 ++++++++++----------
svtools/source/inc/unoiface.hxx | 2 +-
svtools/source/uno/unoiface.cxx | 17 +--
svtools/source/uno/unoimap.cxx | 15 +-
svx/source/fmcomp/gridctrl.cxx | 13 +-
ucbhelper/source/client/proxydecider.cxx | 12 +-
xmloff/source/draw/animationexport.cxx | 14 +-
xmlscript/source/xmlflat_imexp/xmlbas_import.cxx | 44 +++---
xmlscript/source/xmlflat_imexp/xmlbas_import.hxx | 4 +-
xmlscript/source/xmllib_imexp/imp_share.hxx | 4 +-
xmlscript/source/xmllib_imexp/xmllib_import.cxx | 51 +++----
xmlscript/source/xmlmod_imexp/imp_share.hxx | 4 +-
xmlscript/source/xmlmod_imexp/xmlmod_import.cxx | 23 +--
45 files changed, 275 insertions(+), 428 deletions(-)

Upstream: cgit.freedesktop.org


  • Share