diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-03-19 09:21:45 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-03-19 09:04:21 +0100 |
commit | e354b3fb803397fef2a6309fc0cf714a315bedee (patch) | |
tree | 41cdbb9a00a786e1e4bed2a2f23e509fcaebb6a2 /svx | |
parent | 238d65f6823012ddc6820a82ace89ab4be43243e (diff) |
loplugin:redundantpointerops add some more smart pointer types
Change-Id: Ia7f3441404d8d2e5de501e70da496b6fdc6c9a4a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90728
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/fmcomp/gridcell.cxx | 4 | ||||
-rw-r--r-- | svx/source/fmcomp/gridctrl.cxx | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx index 347ea58b1031..336dd3260cf9 100644 --- a/svx/source/fmcomp/gridcell.cxx +++ b/svx/source/fmcomp/gridcell.cxx @@ -2240,13 +2240,13 @@ namespace OUString DbDateField::GetFormatText(const Reference< css::sdb::XColumn >& _rxField, const Reference< css::util::XNumberFormatter >& /*xFormatter*/, Color** /*ppColor*/) { - return lcl_setFormattedDate_nothrow(dynamic_cast<DateField&>(*m_pPainter.get()), _rxField); + return lcl_setFormattedDate_nothrow(dynamic_cast<DateField&>(*m_pPainter), _rxField); } void DbDateField::UpdateFromField(const Reference< css::sdb::XColumn >& _rxField, const Reference< XNumberFormatter >& /*xFormatter*/) { - lcl_setFormattedDate_nothrow(dynamic_cast<DateField&>(*m_pWindow.get()), _rxField); + lcl_setFormattedDate_nothrow(dynamic_cast<DateField&>(*m_pWindow), _rxField); } diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx index c0c7ce19beb1..f9f692062368 100644 --- a/svx/source/fmcomp/gridctrl.cxx +++ b/svx/source/fmcomp/gridctrl.cxx @@ -472,11 +472,11 @@ sal_uInt16 DbGridControl::NavigationBar::ArrangeControls() Point aButtonPos(nX,nY); const Size aButtonSize(nH,nH); - SetPosAndSize(*m_aFirstBtn.get(), aButtonPos, aButtonSize); - SetPosAndSize(*m_aPrevBtn.get(), aButtonPos, aButtonSize); - SetPosAndSize(*m_aNextBtn.get(), aButtonPos, aButtonSize); - SetPosAndSize(*m_aLastBtn.get(), aButtonPos, aButtonSize); - SetPosAndSize(*m_aNewBtn.get(), aButtonPos, aButtonSize); + SetPosAndSize(*m_aFirstBtn, aButtonPos, aButtonSize); + SetPosAndSize(*m_aPrevBtn, aButtonPos, aButtonSize); + SetPosAndSize(*m_aNextBtn, aButtonPos, aButtonSize); + SetPosAndSize(*m_aLastBtn, aButtonPos, aButtonSize); + SetPosAndSize(*m_aNewBtn, aButtonPos, aButtonSize); nX = sal::static_int_cast< sal_uInt16 >(aButtonPos.X() + 1); |