ucb/source/ucp/webdav-curl/DAVTypes.hxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit dbbfcfed6f877ad2446daefe1083f42994f28a1f
Author:     Stephan Bergmann <[email protected]>
AuthorDate: Thu Nov 10 18:56:56 2022 +0100
Commit:     Stephan Bergmann <[email protected]>
CommitDate: Fri Nov 11 12:29:28 2022 +0100

    Drop counterproductive top-level consts
    
    ...that were apparently left by accident by
    b4b4c129e9f00189978cd7b71fd74d0dca4c9ebc "clang-tidy 
modernize-pass-by-value in
    ucb", thwarting the use of std::move here.
    
    (I came across this code with an upcoming loplugin:constmove that flags
    suspicious uses of std::move involving const-qualified types.)
    
    Change-Id: I95867aea623913ed37d57cb7d9593654ec57487d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142564
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <[email protected]>

diff --git a/ucb/source/ucp/webdav-curl/DAVTypes.hxx 
b/ucb/source/ucp/webdav-curl/DAVTypes.hxx
index 66b0aee8ec49..e0f2e856030a 100644
--- a/ucb/source/ucp/webdav-curl/DAVTypes.hxx
+++ b/ucb/source/ucp/webdav-curl/DAVTypes.hxx
@@ -191,8 +191,8 @@ namespace http_dav_ucp
         css::uno::Any const       value;
 
         ProppatchValue( const ProppatchOperation o,
-                        const OUString n,
-                        const css::uno::Any v )
+                        OUString n,
+                        css::uno::Any v )
             : operation( o ), name( std::move(n) ), value( std::move(v) ) {}
     };
 } // namespace http_dav_ucp

Reply via email to