This is an automated email from the ASF dual-hosted git repository.
ardovm pushed a commit to branch mp
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/mp by this push:
new a5304da2e1 Fix compilation under Windows
a5304da2e1 is described below
commit a5304da2e127cc21a33e1f48db130e7f3b9de788
Author: Arrigo Marchiori <[email protected]>
AuthorDate: Sat May 28 18:18:27 2022 +0200
Fix compilation under Windows
std::vector::data() is C++11
---
main/svl/source/passwordcontainer/passwordcontainer.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/main/svl/source/passwordcontainer/passwordcontainer.cxx
b/main/svl/source/passwordcontainer/passwordcontainer.cxx
index c95b3f1a82..07e45a7299 100644
--- a/main/svl/source/passwordcontainer/passwordcontainer.cxx
+++ b/main/svl/source/passwordcontainer/passwordcontainer.cxx
@@ -519,8 +519,8 @@ static void prepareIV(std::vector<sal_uInt8>& iv, const
unsigned char *masterPas
::rtl::OString encodedName = ::rtl::OUStringToOString(aName,
RTL_TEXTENCODING_UTF8 );
ivSource.insert(ivSource.end(), encodedName.getStr(), encodedName.getStr()
+ encodedName.getLength());
iv.resize(RTL_DIGEST_LENGTH_MD5);
- rtl_digest_MD5(ivSource.data(), ivSource.size(),
- iv.data(), iv.size());
+ rtl_digest_MD5(&ivSource[0], ivSource.size(),
+ &iv[0], iv.size());
}
//-------------------------------------------------------------------------
@@ -542,7 +542,7 @@ vector< ::rtl::OUString >
PasswordContainer::DecodePasswords(const ::rtl::OUStri
rtlCipherError result = rtl_cipher_init (
aDecoder, rtl_Cipher_DirectionDecode,
- code, RTL_DIGEST_LENGTH_MD5, iv.data(), iv.size() );
+ code, RTL_DIGEST_LENGTH_MD5, &iv[0], iv.size() );
if( result == rtl_Cipher_E_None )
{
::rtl::ByteSequence aSeq = getBufFromAsciiLine( aLine );
@@ -596,7 +596,7 @@ vector< ::rtl::OUString >
PasswordContainer::DecodePasswords(const ::rtl::OUStri
rtlCipherError result = rtl_cipher_init (
aEncoder, rtl_Cipher_DirectionEncode,
- code, RTL_DIGEST_LENGTH_MD5, iv.data(), iv.size() );
+ code, RTL_DIGEST_LENGTH_MD5, &iv[0], iv.size() );
if( result == rtl_Cipher_E_None )
{