diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-28 14:43:02 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-29 19:22:23 +0200 |
commit | d32dfd9e955cdc893aa21ab8e870d217d1628ad3 (patch) | |
tree | 58662c8f4274fd4eb44177912d63b68516b1aae2 /stoc/source/corereflection/base.hxx | |
parent | 307ee1357cf2c4acd2f3e5a90285e8cb7c4c14e2 (diff) |
std::unique->std::optional
rather than having a pointer to a pointer (which is what Sequence is)
Change-Id: Ieb7b9995f6a25022fe2401adc3c38124edb83506
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116376
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'stoc/source/corereflection/base.hxx')
-rw-r--r-- | stoc/source/corereflection/base.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stoc/source/corereflection/base.hxx b/stoc/source/corereflection/base.hxx index e322f87aa62e..16d42213ddcd 100644 --- a/stoc/source/corereflection/base.hxx +++ b/stoc/source/corereflection/base.hxx @@ -231,8 +231,8 @@ class CompoundIdlClassImpl { css::uno::Reference< css::reflection::XIdlClass > _xSuperClass; - std::unique_ptr< css::uno::Sequence< css::uno::Reference< css::reflection::XIdlField > > > - _pFields; + std::optional< css::uno::Sequence< css::uno::Reference< css::reflection::XIdlField > > > + m_xFields; OUString2Field _aName2Field; public: @@ -294,7 +294,7 @@ public: class EnumIdlClassImpl : public IdlClassImpl { - std::unique_ptr< css::uno::Sequence< css::uno::Reference< css::reflection::XIdlField > > > _pFields; + std::optional< css::uno::Sequence< css::uno::Reference< css::reflection::XIdlField > > > m_xFields; OUString2Field _aName2Field; public: |