summaryrefslogtreecommitdiff
path: root/linguistic/source/misc.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-11-08 12:00:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-11-08 15:23:52 +0100
commited0b12f4eadf1f2242f06cbd56804f75376274b1 (patch)
tree7028abd9cf514c74bd1b795cc6398b0bb433f319 /linguistic/source/misc.cxx
parent5ff283e3b841230a45715e48a251c3c4216d1cec (diff)
no need to take a copy of the getProcessComponentContext return value
we can just take a "const &". (found by running clang-tidy with the performance-unnecessary-copy-initialization warning) Change-Id: I20fd208c65303da78170b1ac06c638fdf3aa094b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176267 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
Diffstat (limited to 'linguistic/source/misc.cxx')
-rw-r--r--linguistic/source/misc.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/linguistic/source/misc.cxx b/linguistic/source/misc.cxx
index 87e9fa397b9b..088cde001f20 100644
--- a/linguistic/source/misc.cxx
+++ b/linguistic/source/misc.cxx
@@ -672,7 +672,7 @@ uno::Reference< XLinguProperties > GetLinguProperties()
uno::Reference< XSearchableDictionaryList > GetDictionaryList()
{
- uno::Reference< XComponentContext > xContext( comphelper::getProcessComponentContext() );
+ const uno::Reference< XComponentContext >& xContext( comphelper::getProcessComponentContext() );
uno::Reference< XSearchableDictionaryList > xRef;
try
{
@@ -705,7 +705,7 @@ AppExitListener::AppExitListener()
{
// add object to Desktop EventListeners in order to properly call
// the AtExit function at application exit.
- uno::Reference< XComponentContext > xContext( comphelper::getProcessComponentContext() );
+ const uno::Reference< XComponentContext >& xContext( comphelper::getProcessComponentContext() );
try
{