summaryrefslogtreecommitdiff
path: root/sw/source/uibase/envelp
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-10-05 22:48:53 +0200
committerMichael Stahl <mstahl@redhat.com>2015-10-05 23:28:08 +0200
commit3bcb74175b959809d1dd85a4f6a9f636366b81c1 (patch)
tree31af7338126a50217032181a4f21043b4ce8eaef /sw/source/uibase/envelp
parent89ed0427bdaa74efbde698b81ceb39b1be0c1e3d (diff)
sw: replace boost::ptr_vector with std::vector<std::unique_ptr>
Change-Id: I1e6ccafea4c876b27e0a57e76c93f075f67a5f54
Diffstat (limited to 'sw/source/uibase/envelp')
-rw-r--r--sw/source/uibase/envelp/labelcfg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/envelp/labelcfg.cxx b/sw/source/uibase/envelp/labelcfg.cxx
index e9197ab2474c..a29ee6c4ce34 100644
--- a/sw/source/uibase/envelp/labelcfg.cxx
+++ b/sw/source/uibase/envelp/labelcfg.cxx
@@ -173,9 +173,9 @@ void SwLabelConfig::ImplCommit() {}
void SwLabelConfig::Notify( const ::com::sun::star::uno::Sequence< OUString >& ) {}
-static SwLabRec* lcl_CreateSwLabRec(const OUString& rType, const OUString& rMeasure, const OUString& rManufacturer)
+static std::unique_ptr<SwLabRec> lcl_CreateSwLabRec(const OUString& rType, const OUString& rMeasure, const OUString& rManufacturer)
{
- SwLabRec* pNewRec = new SwLabRec;
+ std::unique_ptr<SwLabRec> pNewRec(new SwLabRec);
pNewRec->aMake = rManufacturer;
pNewRec->lPWidth = 0;
pNewRec->lPHeight = 0;