summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel/xistream.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/excel/xistream.cxx')
-rw-r--r--sc/source/filter/excel/xistream.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xistream.cxx b/sc/source/filter/excel/xistream.cxx
index d4cb870ebf42..5dd944ee3556 100644
--- a/sc/source/filter/excel/xistream.cxx
+++ b/sc/source/filter/excel/xistream.cxx
@@ -150,7 +150,7 @@ uno::Sequence< beans::NamedValue > XclImpBiff5Decrypter::OnVerifyPassword( const
::std::vector< sal_uInt16 > aPassVect( 16 );
::std::vector< sal_uInt16 >::iterator aIt = aPassVect.begin();
for( sal_Int32 nInd = 0; nInd < nLen; ++nInd, ++aIt )
- *aIt = static_cast< sal_uInt16 >( rPassword.getStr()[nInd] );
+ *aIt = static_cast< sal_uInt16 >( rPassword[nInd] );
uno::Sequence< sal_Int8 > aDocId = ::comphelper::DocPasswordHelper::GenerateRandomByteSequence( 16 );
OSL_ENSURE( aDocId.getLength() == 16, "Unexpected length of the senquence!" );