[Libreoffice-commits] core.git: 2 commits - include/cppuhelper
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sun Mar 3 13:40:48 UTC 2019
include/cppuhelper/typeprovider.hxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 16e8ae5b0d5a3a26450bbc9e6afc6e0984e173ea
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Sun Mar 3 11:10:40 2019 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sun Mar 3 14:40:39 2019 +0100
Make additional OTypeCollection::getTypes overload LIBO_INTERNAL_ONLY
(added recently with d559c28e9e65f3be415ec2e36ee90aa147e65b84 "expand out
IMPL_XTYPEPROVIDER_START macro"), for extra compatibility safety. (At least
MSVC exports non-inline versions of such CPPUHELPER_DLLPUBLIC inline functions
from the cppuhelper DLL.) The original getTypes (added back now with
<https://gerrit.libreoffice.org/#/c/68549/> "revert ABI change from 'expand out
IMPL_XTYPEPROVIDER_START macro'") had been a non-const member function ever
since at least b525a3115f54576017a576ff842dede5e2e3545d "initial import",
presumably by accident. (Whether or not to return a reference is an orthogonal
issue. With the newly added overload being LIBO_INTERNAL_ONLY, it is presumably
fine to have it return a reference for now and see whether that causes any
issues with lifetimes of temporary OTypeCollection instances.)
Change-Id: If6abcf53b46b972204598774fed7cdd34d78440b
Reviewed-on: https://gerrit.libreoffice.org/68637
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/include/cppuhelper/typeprovider.hxx b/include/cppuhelper/typeprovider.hxx
index 3902396248e1..48528fb921b4 100644
--- a/include/cppuhelper/typeprovider.hxx
+++ b/include/cppuhelper/typeprovider.hxx
@@ -160,8 +160,10 @@ public:
*/
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes()
{ return _aTypes; }
+#if defined LIBO_INTERNAL_ONLY
css::uno::Sequence< css::uno::Type > const & SAL_CALL getTypes() const
{ return _aTypes; }
+#endif
};
/** Helper class to implement IDs for XUnoTunnel. Construct a static object
commit bf0150eae796e8ef15af455d5d03f52fdb14b7aa
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Fri Mar 1 14:36:39 2019 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sun Mar 3 14:40:27 2019 +0100
revert ABI change from "expand out IMPL_XTYPEPROVIDER_START macro"
in commit d559c28e9e65f3be415ec2e36ee90aa147e65b84, instead add a
separate const method
Change-Id: If156dd07e77da2efe72c92198960311399151a9d
Reviewed-on: https://gerrit.libreoffice.org/68549
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/include/cppuhelper/typeprovider.hxx b/include/cppuhelper/typeprovider.hxx
index 2cc776c78fcd..3902396248e1 100644
--- a/include/cppuhelper/typeprovider.hxx
+++ b/include/cppuhelper/typeprovider.hxx
@@ -158,6 +158,8 @@ public:
@return type collection
*/
+ css::uno::Sequence< css::uno::Type > SAL_CALL getTypes()
+ { return _aTypes; }
css::uno::Sequence< css::uno::Type > const & SAL_CALL getTypes() const
{ return _aTypes; }
};
More information about the Libreoffice-commits
mailing list