summaryrefslogtreecommitdiff
path: root/idlc/inc/aststruct.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-22 12:21:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-23 07:25:01 +0100
commit5053b8cd3f18cb5baa039c343e20b1b87e7b25a5 (patch)
tree22b95a47962745b1bc3a45c3d55f14289cbbf77d /idlc/inc/aststruct.hxx
parent2925ded06627fb7e5408f15288490db7c9f0ebb0 (diff)
loplugin:useuniqueptr in AstStruct
Change-Id: Ib7416235e41192323e74061bfce6c162e87612f2 Reviewed-on: https://gerrit.libreoffice.org/51736 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'idlc/inc/aststruct.hxx')
-rw-r--r--idlc/inc/aststruct.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/idlc/inc/aststruct.hxx b/idlc/inc/aststruct.hxx
index 52981cf2b791..bb5ef15152e2 100644
--- a/idlc/inc/aststruct.hxx
+++ b/idlc/inc/aststruct.hxx
@@ -40,7 +40,7 @@ public:
AstScope* pScope);
virtual ~AstStruct() override;
- DeclList::size_type getTypeParameterCount() const
+ std::size_t getTypeParameterCount() const
{ return m_typeParameters.size(); }
AstDeclaration const * findTypeParameter(OString const & name) const;
@@ -50,7 +50,7 @@ public:
virtual bool dump(RegistryKey& rKey) override;
private:
AstStruct const* m_pBaseType;
- DeclList m_typeParameters;
+ std::vector<std::unique_ptr<AstDeclaration>> m_typeParameters;
};
#endif // INCLUDED_IDLC_INC_ASTSTRUCT_HXX