summaryrefslogtreecommitdiff
path: root/include/sfx2/dinfdlg.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-04 13:37:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-07 08:33:16 +0200
commita36d67240c303101fb6a56e40ff46aa1023089f3 (patch)
treef6ceb7a07c56f1bbc1f718bf6534f4dcd35d9060 /include/sfx2/dinfdlg.hxx
parent8f0167d0e005b2872bba966ab9d72f5cd0f5ad17 (diff)
loplugin:useuniqueptr in SfxDocumentInfoItem and CustomPropertiesWindow
Change-Id: I535200a5b26725cdefc3e6e3ce5e1e925e7a7bfd Reviewed-on: https://gerrit.libreoffice.org/53876 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sfx2/dinfdlg.hxx')
-rw-r--r--include/sfx2/dinfdlg.hxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/sfx2/dinfdlg.hxx b/include/sfx2/dinfdlg.hxx
index 9516b74868d8..2e61a28583ee 100644
--- a/include/sfx2/dinfdlg.hxx
+++ b/include/sfx2/dinfdlg.hxx
@@ -46,6 +46,7 @@
#include <sfx2/tabdlg.hxx>
#include <boost/optional/optional.hpp>
+#include <memory>
namespace com { namespace sun { namespace star {
namespace document {
@@ -81,7 +82,7 @@ private:
bool m_bDeleteUserData;
bool m_bUseUserData;
bool m_bUseThumbnailSave;
- std::vector< CustomProperty* > m_aCustomProperties;
+ std::vector< std::unique_ptr<CustomProperty> > m_aCustomProperties;
css::uno::Sequence< css::document::CmisProperty > m_aCmisProperties;
public:
@@ -150,7 +151,7 @@ public:
bool IsUseThumbnailSave() const { return m_bUseThumbnailSave;}
- std::vector< CustomProperty* > GetCustomProperties() const;
+ std::vector< std::unique_ptr<CustomProperty> > GetCustomProperties() const;
void ClearCustomProperties();
void AddCustomProperty( const OUString& sName,
const css::uno::Any& rValue );
@@ -402,7 +403,7 @@ private:
sal_Int32 m_nTypeBoxWidth;
sal_Int32 m_nLineHeight;
sal_Int32 m_nScrollPos;
- std::vector<CustomProperty*> m_aCustomProperties;
+ std::vector<std::unique_ptr<CustomProperty>> m_aCustomProperties;
std::vector<CustomPropertyLine*> m_aCustomPropertiesLines;
CustomPropertyLine* m_pCurrentLine;
SvNumberFormatter m_aNumberFormatter;
@@ -455,7 +456,7 @@ public:
css::uno::Sequence< css::beans::PropertyValue >
GetCustomProperties();
- void SetCustomProperties(const std::vector<CustomProperty*>& rProperties);
+ void SetCustomProperties(std::vector< std::unique_ptr<CustomProperty> >&& rProperties);
void SetRemovedHdl( const Link<void*,void>& rLink ) { m_aRemovedHdl = rLink; }
};
@@ -488,7 +489,7 @@ public:
css::uno::Sequence<css::beans::PropertyValue>
GetCustomProperties() const
{ return m_pPropertiesWin->GetCustomProperties(); }
- void SetCustomProperties(const std::vector<CustomProperty*>& rProperties);
+ void SetCustomProperties(std::vector< std::unique_ptr<CustomProperty> >&& rProperties);
void Init(VclBuilderContainer& rParent);
virtual void Resize() override;