diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-11-10 18:56:56 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-11-11 12:29:28 +0100 |
commit | dbbfcfed6f877ad2446daefe1083f42994f28a1f (patch) | |
tree | 210b470b1baf6359283032feda91a8a916252ec4 /ucb | |
parent | c222722619ffcdcff17cfad8b932d5108eb54617 (diff) |
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 <sbergman@redhat.com>
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/webdav-curl/DAVTypes.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
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 |