summaryrefslogtreecommitdiff
path: root/include/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-05 16:36:04 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-17 14:17:51 +0100
commitbe4e037b0944fdaec20b6afb05f668b93c1a4a8f (patch)
tree4176fb0803b4dc38bb615efa9253a31d8a68df81 /include/svx
parent4c0dec9988e77aaeec152deb9c2fd32173a32814 (diff)
loplugin:useuniqueptr in DbGridRow
Change-Id: Ia3d7e2821213fb6e6ab5e13f707b5e07b26127a8 Reviewed-on: https://gerrit.libreoffice.org/49871 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx')
-rw-r--r--include/svx/gridctrl.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/svx/gridctrl.hxx b/include/svx/gridctrl.hxx
index d3d3c778b5bc..80c2b6aad5ff 100644
--- a/include/svx/gridctrl.hxx
+++ b/include/svx/gridctrl.hxx
@@ -37,6 +37,7 @@
#include <svtools/transfer.hxx>
#include <svx/svxdllapi.h>
#include <o3tl/typed_flags_set.hxx>
+#include <memory>
#include <vector>
class DbGridControl;
@@ -64,14 +65,14 @@ enum class GridRowStatus
class DbGridRow : public SvRefBase
{
css::uno::Any m_aBookmark; // Bookmark of the row, can be set
- ::std::vector< ::svxform::DataColumn* >
+ ::std::vector< std::unique_ptr<::svxform::DataColumn> >
m_aVariants;
GridRowStatus m_eStatus;
bool m_bIsNew;
// row is no longer valid
// is removed on the next positioning
public:
- DbGridRow():m_eStatus(GridRowStatus::Clean), m_bIsNew(true) { }
+ DbGridRow();
DbGridRow(CursorWrapper* pCur, bool bPaintCursor);
void SetState(CursorWrapper* pCur, bool bPaintCursor);