summaryrefslogtreecommitdiff
path: root/ucbhelper/source/provider/contentinfo.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-07-19 12:26:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-20 13:00:45 +0200
commit1688af45e37144991eb09664a17b01d6be8f4792 (patch)
tree2e24bb62fef600f39712ea7eb618eb02be777a78 /ucbhelper/source/provider/contentinfo.hxx
parent650818bf8387636afce9af3672abb84f29b99ee2 (diff)
no need to allocate Sequence separately in PropertySetInfo
Change-Id: If4843c3f419fac59ae8ce52b4004ce2dbb736f6d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119215 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucbhelper/source/provider/contentinfo.hxx')
-rw-r--r--ucbhelper/source/provider/contentinfo.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/ucbhelper/source/provider/contentinfo.hxx b/ucbhelper/source/provider/contentinfo.hxx
index 22591c8bc360..09e43c782453 100644
--- a/ucbhelper/source/provider/contentinfo.hxx
+++ b/ucbhelper/source/provider/contentinfo.hxx
@@ -21,6 +21,7 @@
#define UCBHELPER_SOURCE_PROVIDER_CONTENTINFO_HXX
#include <memory>
+#include <optional>
#include <com/sun/star/ucb/XCommandInfo.hpp>
#include <com/sun/star/lang/XTypeProvider.hpp>
#include <com/sun/star/beans/XPropertySetInfo.hpp>
@@ -48,8 +49,8 @@ class PropertySetInfo :
{
css::uno::Reference< css::ucb::XCommandEnvironment >
m_xEnv;
- std::unique_ptr<css::uno::Sequence< css::beans::Property >>
- m_pProps;
+ std::optional<css::uno::Sequence< css::beans::Property >>
+ m_xProps;
osl::Mutex m_aMutex;
ContentImplHelper* m_pContent;