diff options
author | Rene Engelhard <rene@rene-engelhard.de> | 2022-06-01 19:23:00 +0200 |
---|---|---|
committer | René Engelhard <rene@debian.org> | 2022-06-01 22:30:12 +0200 |
commit | 197a28ae5038d7faed9b075877b2377c981bc97a (patch) | |
tree | 79f343c122588aadf013f9e4464b95ebd7e9930d /comphelper | |
parent | 9ed78f1be7cf3f2338323a146a84de5e4b6db1a4 (diff) |
fix build
add #include <optional>, since:
[build CXX] comphelper/source/property/ChainablePropertySetInfo.cxx
/home/rene/LibreOffice/git/master/comphelper/source/property/ChainablePropertySet.cxx: In member function 'virtual void comphelper::ChainablePropertySet::setPropertyValue(const rtl::OUString&, const com::sun::star::uno::Any&)':
/home/rene/LibreOffice/git/master/comphelper/source/property/ChainablePropertySet.cxx:54:10: error: 'optional' is not a member of 'std'
54 | std::optional< osl::Guard< comphelper::SolarMutex > > xMutexGuard;
| ^~~~~~~~
/home/rene/LibreOffice/git/master/comphelper/source/property/ChainablePropertySet.cxx:23:1: note: 'std::optional' is defined in header '<optional>'; did you forget to '#include <optional>'?
22 | #include <comphelper/solarmutex.hxx>
+++ |+#include <optional>
23 |
happens since 49b9401465730b1151917bffcbc0ad1f0622fcee
Change-Id: I643e7811f1ec7588ccde5453303cd57675c6165e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135252
Tested-by: Jenkins
Tested-by: René Engelhard <rene@debian.org>
Reviewed-by: René Engelhard <rene@debian.org>
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/property/ChainablePropertySet.cxx | 1 | ||||
-rw-r--r-- | comphelper/source/property/MasterPropertySet.cxx | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/comphelper/source/property/ChainablePropertySet.cxx b/comphelper/source/property/ChainablePropertySet.cxx index 7c9caa17582a..0805afe72bcf 100644 --- a/comphelper/source/property/ChainablePropertySet.cxx +++ b/comphelper/source/property/ChainablePropertySet.cxx @@ -23,6 +23,7 @@ #include <memory> +#include <optional> using namespace ::comphelper; using namespace ::com::sun::star; diff --git a/comphelper/source/property/MasterPropertySet.cxx b/comphelper/source/property/MasterPropertySet.cxx index 51fdd4deb620..922a4c1c69b4 100644 --- a/comphelper/source/property/MasterPropertySet.cxx +++ b/comphelper/source/property/MasterPropertySet.cxx @@ -27,6 +27,7 @@ #include <memory> #include <vector> +#include <optional> namespace { |