summaryrefslogtreecommitdiff
path: root/avmedia/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-11-07 08:16:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-11-07 10:03:42 +0100
commit91106b5b6153f324399f4fbb74b0f90c6eccc7ec (patch)
treeb9f9b843481fa4b7fe5dffb6313ffb230b8d3f05 /avmedia/source
parente5570ce8e936ab07e5f5f676d7043d8f32bf7306 (diff)
loplugin:passstuffbyref in avmedia..canvas
Change-Id: I916a6431eb0720af16dcb5aa46b758f92dbe4ec4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176179 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'avmedia/source')
-rw-r--r--avmedia/source/framework/mediaitem.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/avmedia/source/framework/mediaitem.cxx b/avmedia/source/framework/mediaitem.cxx
index f587ced4241a..c2ecaa29d9bf 100644
--- a/avmedia/source/framework/mediaitem.cxx
+++ b/avmedia/source/framework/mediaitem.cxx
@@ -285,7 +285,7 @@ bool MediaItem::setMimeType(const OUString& rMimeType)
return bChanged;
}
-OUString MediaItem::getMimeType() const
+const OUString & MediaItem::getMimeType() const
{
return !m_pImpl->m_sMimeType.isEmpty() ? m_pImpl->m_sMimeType : AVMEDIA_MIMETYPE_COMMON;
}