diff options
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/firebird/Clob.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/drivers/firebird/Clob.cxx b/connectivity/source/drivers/firebird/Clob.cxx index 358451738003..3ed83a9b19d2 100644 --- a/connectivity/source/drivers/firebird/Clob.cxx +++ b/connectivity/source/drivers/firebird/Clob.cxx @@ -58,7 +58,7 @@ sal_Int64 SAL_CALL Clob::length() { uno::Sequence < sal_Int8 > aSegmentBytes; bLastSegmRead = m_aBlob->readOneSegment( aSegmentBytes ); - OUString sSegment ( reinterpret_cast< char *>( aSegmentBytes.getArray() ), + OUString sSegment ( reinterpret_cast< const char *>( aSegmentBytes.getConstArray() ), aSegmentBytes.getLength(), RTL_TEXTENCODING_UTF8 ); @@ -90,7 +90,7 @@ OUString SAL_CALL Clob::getSubString(sal_Int64 nPosition, if( bLastRead ) throw lang::IllegalArgumentException("nPosition out of range", *this, 0); - OUString sSegment ( reinterpret_cast< char *>( aSegmentBytes.getArray() ), + OUString sSegment ( reinterpret_cast< const char *>( aSegmentBytes.getConstArray() ), aSegmentBytes.getLength(), RTL_TEXTENCODING_UTF8 ); sal_Int32 nStrLen = sSegment.getLength(); @@ -112,7 +112,7 @@ OUString SAL_CALL Clob::getSubString(sal_Int64 nPosition, uno::Sequence < sal_Int8 > aSegmentBytes; bool bLastRead = m_aBlob->readOneSegment( aSegmentBytes ); - OUString sSegment ( reinterpret_cast< char *>( aSegmentBytes.getArray() ), + OUString sSegment ( reinterpret_cast< const char *>( aSegmentBytes.getConstArray() ), aSegmentBytes.getLength(), RTL_TEXTENCODING_UTF8 ); sal_Int32 nStrLen = sSegment.getLength(); |