summaryrefslogtreecommitdiff
path: root/svx/source/inc/gridcell.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-08-20 11:21:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-08-21 12:10:16 +0200
commit7469e078dc3a7a891bd7f5c44a693e4421d3bcdd (patch)
treedd8a8331fb84ab8d76ae9f547586884bde49286c /svx/source/inc/gridcell.hxx
parent9ca80b550216daac3cfb3d373c344c0154fa7df2 (diff)
loplugin:useuniqueptr in FmXGridCell
Change-Id: I4783b59f5fe83354fb47d081a60a81c9cebfac71 Reviewed-on: https://gerrit.libreoffice.org/59354 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/inc/gridcell.hxx')
-rw-r--r--svx/source/inc/gridcell.hxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/svx/source/inc/gridcell.hxx b/svx/source/inc/gridcell.hxx
index f67196fd23b3..42cc075d98c4 100644
--- a/svx/source/inc/gridcell.hxx
+++ b/svx/source/inc/gridcell.hxx
@@ -717,7 +717,7 @@ protected:
virtual ~FmXGridCell() override;
public:
- FmXGridCell( DbGridColumn* pColumn, DbCellControl* pControl );
+ FmXGridCell( DbGridColumn* pColumn, std::unique_ptr<DbCellControl> pControl );
void init();
DECLARE_UNO3_AGG_DEFAULTS(FmXGridCell, OComponentHelper)
@@ -798,8 +798,8 @@ private:
class FmXDataCell : public FmXGridCell
{
public:
- FmXDataCell( DbGridColumn* pColumn, DbCellControl& _rControl )
- :FmXGridCell( pColumn, &_rControl )
+ FmXDataCell( DbGridColumn* pColumn, std::unique_ptr<DbCellControl> pControl )
+ :FmXGridCell( pColumn, std::move(pControl) )
{
}
@@ -836,7 +836,7 @@ protected:
bool m_bFastPaint;
public:
- FmXTextCell( DbGridColumn* pColumn, DbCellControl& _rControl );
+ FmXTextCell( DbGridColumn* pColumn, std::unique_ptr<DbCellControl> pControl );
virtual void PaintFieldToCell(OutputDevice& rDev,
const tools::Rectangle& rRect,
@@ -857,7 +857,7 @@ class FmXEditCell final : public FmXTextCell,
public FmXEditCell_Base
{
public:
- FmXEditCell( DbGridColumn* pColumn, DbCellControl& _rControl );
+ FmXEditCell( DbGridColumn* pColumn, std::unique_ptr<DbCellControl> pControl );
DECLARE_UNO3_AGG_DEFAULTS(FmXEditCell, FmXTextCell)
virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type& _rType ) override;
@@ -920,7 +920,7 @@ protected:
virtual ~FmXCheckBoxCell() override;
public:
- FmXCheckBoxCell( DbGridColumn* pColumn, DbCellControl& _rControl );
+ FmXCheckBoxCell( DbGridColumn* pColumn, std::unique_ptr<DbCellControl> pControl );
// UNO
DECLARE_UNO3_AGG_DEFAULTS(FmXCheckBoxCell, FmXDataCell)
@@ -957,7 +957,7 @@ class FmXListBoxCell final :public FmXTextCell
,public FmXListBoxCell_Base
{
public:
- FmXListBoxCell( DbGridColumn* pColumn, DbCellControl& _rControl );
+ FmXListBoxCell( DbGridColumn* pColumn, std::unique_ptr<DbCellControl> pControl );
DECLARE_UNO3_AGG_DEFAULTS(FmXListBoxCell, FmXTextCell)
virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type& _rType ) override;
@@ -1017,7 +1017,7 @@ protected:
virtual ~FmXComboBoxCell() override;
public:
- FmXComboBoxCell( DbGridColumn* pColumn, DbCellControl& _rControl );
+ FmXComboBoxCell( DbGridColumn* pColumn, std::unique_ptr<DbCellControl> pControl );
DECLARE_UNO3_AGG_DEFAULTS(FmXListBoxCell, FmXTextCell)
virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type& _rType ) override;
@@ -1053,7 +1053,7 @@ class FmXFilterCell final : public FmXGridCell
,public FmXFilterCell_Base
{
public:
- FmXFilterCell(DbGridColumn* pColumn, DbFilterField* pControl);
+ FmXFilterCell(DbGridColumn* pColumn, std::unique_ptr<DbFilterField> pControl);
DECLARE_UNO3_AGG_DEFAULTS(FmXFilterCell, FmXGridCell)