summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2019-02-13 14:17:46 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-02-28 17:44:23 +0100
commitd8dc108ba083d8e3303a936c090c3e3692c63150 (patch)
treec35dd0195063dd64d368a331c0438467966bf58f /include
parent96f039b85ab89159eb1213c44964518ba912f58e (diff)
fix Sequence ostream operator<< wrt. const
Change-Id: I0e9cf35b45b0bcd58ce9d987ffb0384afda4c5dd Reviewed-on: https://gerrit.libreoffice.org/68021 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/com/sun/star/uno/Sequence.hxx4
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();