summaryrefslogtreecommitdiff
path: root/avmedia/source/viewer
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 /avmedia/source/viewer
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 'avmedia/source/viewer')
-rw-r--r--avmedia/source/viewer/mediawindow_impl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/avmedia/source/viewer/mediawindow_impl.cxx b/avmedia/source/viewer/mediawindow_impl.cxx
index 48476a687d34..4bada4d23ec1 100644
--- a/avmedia/source/viewer/mediawindow_impl.cxx
+++ b/avmedia/source/viewer/mediawindow_impl.cxx
@@ -184,7 +184,7 @@ uno::Reference<media::XPlayer> MediaWindowImpl::createPlayer(const OUString& rUR
// currently there isn't anything else, throw any mime type to the media players
//if (!pMimeType || *pMimeType == AVMEDIA_MIMETYPE_COMMON)
{
- uno::Reference<uno::XComponentContext> xContext(::comphelper::getProcessComponentContext());
+ const uno::Reference<uno::XComponentContext>& xContext(::comphelper::getProcessComponentContext());
const OUString sToolkitName = Application::GetToolkitName();
if (sToolkitName == "gtk4")
xPlayer = createPlayer(rURL, u"com.sun.star.comp.avmedia.Manager_Gtk"_ustr, xContext);