summaryrefslogtreecommitdiff
path: root/framework/inc/helper/mischelper.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-06-02 10:44:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-02 12:12:15 +0200
commitc60ad041e8f48759062d652ca20216c424768fa4 (patch)
tree73f2839e672f91b4262d79fe88bc0b8af1c44ff4 /framework/inc/helper/mischelper.hxx
parent826b0fc9aacbe58c998aec8ebba3401c0a68a015 (diff)
clang-tidy modernize-pass-by-value in framework
Change-Id: I024653154c51389bb27f3e94b422ff7fc1c9b46b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135296 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/inc/helper/mischelper.hxx')
-rw-r--r--framework/inc/helper/mischelper.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/inc/helper/mischelper.hxx b/framework/inc/helper/mischelper.hxx
index e7f4412a4306..7e028d18e446 100644
--- a/framework/inc/helper/mischelper.hxx
+++ b/framework/inc/helper/mischelper.hxx
@@ -36,6 +36,7 @@
#include <functional>
#include <set>
+#include <utility>
namespace framework
{
@@ -108,7 +109,7 @@ class LanguageGuessingHelper
css::uno::Reference< css::uno::XComponentContext > m_xContext;
public:
- LanguageGuessingHelper(const css::uno::Reference< css::uno::XComponentContext >& _xContext) : m_xContext(_xContext){}
+ LanguageGuessingHelper(css::uno::Reference< css::uno::XComponentContext > _xContext) : m_xContext(std::move(_xContext)){}
css::uno::Reference< css::linguistic2::XLanguageGuessing > const & GetGuesser() const;
};