ucb/source/ucp/webdav-curl/DAVResourceAccess.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
New commits: commit 9595fc05608a1e7989c85d6eeb5127828f93c9df Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sun Nov 17 16:49:07 2024 +0000 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Sun Nov 17 20:16:40 2024 +0100 crashtesting: use after free commit 8393267c651d0a3071472a8d6ad9861ed75af38b CommitDate: Tue Nov 12 09:03:21 2024 +0100 clang-tidy: performance-unnecessary-copy-initialization in various Change-Id: I1033c33a6b4bf06e365ce183b1a73c98bea777ab Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176442 Change-Id: Id9e253b849c74a2828ef889f9a13854de0fe2f8b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176693 Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> Tested-by: Jenkins diff --git a/ucb/source/ucp/webdav-curl/DAVResourceAccess.cxx b/ucb/source/ucp/webdav-curl/DAVResourceAccess.cxx index 6640df2b963e..5fc9eccc1acd 100644 --- a/ucb/source/ucp/webdav-curl/DAVResourceAccess.cxx +++ b/ucb/source/ucp/webdav-curl/DAVResourceAccess.cxx @@ -1118,11 +1118,9 @@ void DAVResourceAccess::resetUri() osl::Guard< osl::Mutex > aGuard( m_aMutex ); if ( ! m_aRedirectURIs.empty() ) { - auto const it = m_aRedirectURIs.begin(); - - CurlUri const& aUri( *it ); + OUString sURI = m_aRedirectURIs.front().GetURI(); m_aRedirectURIs.clear(); - setURL ( aUri.GetURI() ); + setURL(sURI); initialize(); } }