Kaydet (Commit) 2e80fe39 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:useuniqueptr in dbaui::SbaSbAttrDlg

Change-Id: Ia24f948370b30ccc3870e36c19312e9eebb309b3
Reviewed-on: https://gerrit.libreoffice.org/54851Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 03841dc1
......@@ -38,7 +38,7 @@ SbaSbAttrDlg::SbaSbAttrDlg(vcl::Window* pParent, const SfxItemSet* pCellAttrs,
: SfxTabDialog(pParent, "FieldDialog", "dbaccess/ui/fielddialog.ui", pCellAttrs)
, m_nNumberFormatId(0)
{
pNumberInfoItem = new SvxNumberInfoItem( pFormatter, 0 );
pNumberInfoItem.reset( new SvxNumberInfoItem( pFormatter, 0 ) );
if (bHasFormat)
m_nNumberFormatId = AddTabPage("format", RID_SVXPAGE_NUMBERFORMAT);
......@@ -54,7 +54,7 @@ SbaSbAttrDlg::~SbaSbAttrDlg()
void SbaSbAttrDlg::dispose()
{
delete pNumberInfoItem;
pNumberInfoItem.reset();
SfxTabDialog::dispose();
}
......
......@@ -29,7 +29,7 @@ namespace dbaui
class SbaSbAttrDlg : public SfxTabDialog
{
SvxNumberInfoItem* pNumberInfoItem;
std::unique_ptr<SvxNumberInfoItem> pNumberInfoItem;
sal_uInt32 m_nNumberFormatId;
public:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment