summaryrefslogtreecommitdiff
path: root/svx/inc
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2017-09-06 12:05:11 +0900
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-06 14:17:35 +0200
commita72f30e518883c9b2e20c6a0cf2f1e46eac1fbf9 (patch)
tree228d52a64633eed4d1e639d75b27ce9b767dd610 /svx/inc
parent128c2badab606787d437482a759d1ed08f4e31d5 (diff)
svx: Simplify code with std::unique_ptr
Change-Id: I6f22417edc70812c64f7b4a9c6d59947059db414 Reviewed-on: https://gerrit.libreoffice.org/41971 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/inc')
-rw-r--r--svx/inc/svdibrow.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/inc/svdibrow.hxx b/svx/inc/svdibrow.hxx
index 76b855564c93..c97671e2ffbe 100644
--- a/svx/inc/svdibrow.hxx
+++ b/svx/inc/svdibrow.hxx
@@ -24,6 +24,7 @@
#include <vcl/edit.hxx>
#include <vcl/floatwin.hxx>
#include <vcl/idle.hxx>
+#include <memory>
class SfxItemSet;
class ImpItemListRow;
@@ -32,7 +33,7 @@ class BrowserMouseEvent;
class SdrItemBrowserControl: public BrowseBox
{
friend class ImpItemEdit;
- std::vector<ImpItemListRow*> aList;
+ std::vector<std::unique_ptr<ImpItemListRow>> aList;
long nAktPaintRow;
VclPtr<Edit> pEditControl;
OUString aWNamMerk;
@@ -48,7 +49,6 @@ friend class ImpItemEdit;
private:
void ImpCtor();
void ImpSetEntry(const ImpItemListRow& rEntry, std::size_t nEntryNum);
- ImpItemListRow* ImpGetEntry(std::size_t nPos) const { return aList[nPos]; }
void ImpSaveWhich();
void ImpRestoreWhich();
std::size_t GetCurrentPos() const;