diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-11-10 19:01:49 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-11-11 12:30:03 +0100 |
commit | ed38659127ac801666de1bc423855d2b666f7150 (patch) | |
tree | e6762c61f29545c0c4309bf73bc708a3e42a2cc3 /include/comphelper | |
parent | dbbfcfed6f877ad2446daefe1083f42994f28a1f (diff) |
Drop counterproductive top-level const
...that was apparently left by accident by
24c709655e5c1ca51c6c6da7ef0cb733354f6d20 "clang-tidy modernize-pass-by-value in
comphelper", thwarting the use of std::move here.
And clean up the declarations in the include file, too.
(I came across this code with an upcoming loplugin:constmove that flags
suspicious uses of std::move involving const-qualified types.)
Change-Id: I8178ad09bc4e7d4f57c5dfd9b0e2103e6d4fa72a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142566
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/comphelper')
-rw-r--r-- | include/comphelper/enumhelper.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/comphelper/enumhelper.hxx b/include/comphelper/enumhelper.hxx index fb26de48971d..91e8af5b8f9a 100644 --- a/include/comphelper/enumhelper.hxx +++ b/include/comphelper/enumhelper.hxx @@ -48,8 +48,8 @@ class COMPHELPER_DLLPUBLIC OEnumerationByName final : std::mutex m_aLock; public: - OEnumerationByName(const css::uno::Reference< css::container::XNameAccess > _xAccess); - OEnumerationByName(const css::uno::Reference< css::container::XNameAccess > _xAccess, + OEnumerationByName(css::uno::Reference< css::container::XNameAccess > _xAccess); + OEnumerationByName(css::uno::Reference< css::container::XNameAccess > _xAccess, std::vector<OUString> _aNames ); virtual ~OEnumerationByName() override; |