summaryrefslogtreecommitdiff
path: root/uui/source
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-10-29 10:23:35 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-10-31 21:32:36 +0100
commitdb149ba9801f57c2e737dec893965f880fa04700 (patch)
treea2a6528666a1961a5b7ae232a442ce710472a217 /uui/source
parent51b75b2eae36272289230bd63b546d527c18df19 (diff)
Prepare for removal of non-const operator[] from Sequence in uui
Change-Id: I3b4ddb7c371c5a01c561e4b45f3c181b5d9e2a11 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124409 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'uui/source')
-rw-r--r--uui/source/iahndl-authentication.cxx5
-rw-r--r--uui/source/iahndl-ssl.cxx6
2 files changed, 6 insertions, 5 deletions
diff --git a/uui/source/iahndl-authentication.cxx b/uui/source/iahndl-authentication.cxx
index ad975d3f9ae7..4ec2f734be6b 100644
--- a/uui/source/iahndl-authentication.cxx
+++ b/uui/source/iahndl-authentication.cxx
@@ -344,9 +344,10 @@ handleAuthenticationRequest_(
{
uno::Sequence< OUString >
aPassList(aInfo.GetAccount().isEmpty() ? 1 : 2);
- aPassList[0] = aInfo.GetPassword();
+ auto pPassList = aPassList.getArray();
+ pPassList[0] = aInfo.GetPassword();
if (!aInfo.GetAccount().isEmpty())
- aPassList[1] = aInfo.GetAccount();
+ pPassList[1] = aInfo.GetAccount();
if (aInfo.GetIsRememberPassword())
{
diff --git a/uui/source/iahndl-ssl.cxx b/uui/source/iahndl-ssl.cxx
index bf4e8811f949..fa1b2a6a16e4 100644
--- a/uui/source/iahndl-ssl.cxx
+++ b/uui/source/iahndl-ssl.cxx
@@ -274,14 +274,14 @@ handleCertificateValidationRequest_(
OUString certHostName = getContentPart( rRequest.Certificate->getSubjectName() );
uno::Sequence< OUString > certHostNames(altNames.size() + 1);
-
- certHostNames[0] = certHostName;
+ auto pcertHostNames = certHostNames.getArray();
+ pcertHostNames[0] = certHostName;
for (size_t n = 0; n < altNames.size(); ++n)
{
if (altNames[n].Type == security::ExtAltNameType_DNS_NAME)
{
- altNames[n].Value >>= certHostNames[n+1];
+ altNames[n].Value >>= pcertHostNames[n+1];
}
}