diff options
Diffstat (limited to 'oox/source/dump/dumperbase.cxx')
-rw-r--r-- | oox/source/dump/dumperbase.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/dump/dumperbase.cxx b/oox/source/dump/dumperbase.cxx index 373e665cd14a..a4fca11906a8 100644 --- a/oox/source/dump/dumperbase.cxx +++ b/oox/source/dump/dumperbase.cxx @@ -2144,9 +2144,9 @@ OUString InputObjectBase::dumpCharArray( const String& rName, sal_Int32 nLen, rt if( nDumpSize > 0 ) { ::std::vector< sal_Char > aBuffer( static_cast< std::size_t >( nLen ) + 1 ); - sal_Int32 nCharsRead = mxStrm->readMemory( &aBuffer.front(), nLen ); + sal_Int32 nCharsRead = mxStrm->readMemory(aBuffer.data(), nLen); aBuffer[ nCharsRead ] = 0; - aString = OStringToOUString( OString( &aBuffer.front() ), eTextEnc ); + aString = OStringToOUString(OString(aBuffer.data()), eTextEnc); } if( bHideTrailingNul ) aString = StringHelper::trimTrailingNul( aString ); |