diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-22 08:56:58 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-22 13:21:28 +0200 |
commit | b576e560073e7b08dcf0d1f172894ebff23d054d (patch) | |
tree | 702056e6e56b675f5a56db179b91fc5567f5c723 /include/com | |
parent | 4bc8c14c34232bb31edf0cb67c971f2d40dd7fdd (diff) |
__coverity_tainted_data_sanitize__ can't be const
apparently, so use const_cast on its input instead
Change-Id: Ib0dfd94c144a2509470ca7a9b3b8fbfacbfd7581
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103148
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/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 62b8b1df96c3..3d0c024a1da3 100644 --- a/include/com/sun/star/uno/Sequence.hxx +++ b/include/com/sun/star/uno/Sequence.hxx @@ -74,7 +74,7 @@ inline Sequence< E >::Sequence( } #if defined(__COVERITY__) -extern "C" void __coverity_tainted_data_sanitize__(const void *); +extern "C" void __coverity_tainted_data_sanitize__(void *); #endif template< class E > @@ -84,7 +84,7 @@ inline Sequence< E >::Sequence( const E * pElements, sal_Int32 len ) #if defined(__COVERITY__) // cid#1448292 coverity has difficulty with css::uno::Sequence - __coverity_tainted_data_sanitize__(pElements); + __coverity_tainted_data_sanitize__(const_cast<E*>(pElements)); #endif bool success = |