diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2019-02-13 14:17:46 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2019-02-26 17:21:14 +0100 |
commit | 6de7e74a0dc981cf0947eb9941fc6dc2cd7cc395 (patch) | |
tree | bf32099f5a98a35fcd8629a887c647d80f5dd195 | |
parent | 0b7f9a512b36bc409f8e1f66b07afb74b42f0561 (diff) |
fix Sequence ostream operator<< wrt. const
Change-Id: I0e9cf35b45b0bcd58ce9d987ffb0384afda4c5dd
Reviewed-on: https://gerrit.libreoffice.org/68022
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
-rw-r--r-- | include/com/sun/star/uno/Sequence.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/com/sun/star/uno/Sequence.hxx b/include/com/sun/star/uno/Sequence.hxx index 64f84ffc7bc3..e9f5cf73db35 100644 --- a/include/com/sun/star/uno/Sequence.hxx +++ b/include/com/sun/star/uno/Sequence.hxx @@ -257,7 +257,7 @@ struct negation : std::integral_constant<bool, !bool(B::value)> { }; @since LibreOffice 6.1 */ template< typename value_t, typename charT, typename traits > -inline typename std::enable_if<uno_detail::negation<std::is_same<sal_Int8, value_t>>::value, std::basic_ostream<charT, traits>>::type &operator<<(std::basic_ostream<charT, traits> &os, css::uno::Sequence < value_t > &v) +inline typename std::enable_if<uno_detail::negation<std::is_same<sal_Int8, value_t>>::value, std::basic_ostream<charT, traits>>::type &operator<<(std::basic_ostream<charT, traits> &os, css::uno::Sequence<value_t> const& v) { const value_t *pAry = v.getConstArray(); sal_Int32 nLen = v.getLength(); @@ -266,7 +266,7 @@ inline typename std::enable_if<uno_detail::negation<std::is_same<sal_Int8, value } template< typename value_t, typename charT, typename traits > -inline typename std::enable_if<std::is_same<sal_Int8, value_t>::value, std::basic_ostream<charT, traits>>::type &operator<<(std::basic_ostream<charT, traits> &os, css::uno::Sequence < value_t > &v) +inline typename std::enable_if<std::is_same<sal_Int8, value_t>::value, std::basic_ostream<charT, traits>>::type &operator<<(std::basic_ostream<charT, traits> &os, css::uno::Sequence<value_t> const& v) { // specialisation for signed bytes const sal_Int8 *pAry = v.getConstArray(); |