summaryrefslogtreecommitdiff
path: root/vcl/qt5/QtFontFace.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-07-12 15:52:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-07-13 09:22:40 +0200
commit54a97eb9ddd66294f303189ca12ef726177453cb (patch)
treefc068c028f44ef859021bf4b1a66daa29491a20d /vcl/qt5/QtFontFace.cxx
parent72f631977435a704008a55d3be6489ba619e3064 (diff)
clang-tidy modernize-pass-by-value in vcl
Change-Id: I9ddb786eb88213c53cf53067ced6899ca40ac6e8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137000 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/qt5/QtFontFace.cxx')
-rw-r--r--vcl/qt5/QtFontFace.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/qt5/QtFontFace.cxx b/vcl/qt5/QtFontFace.cxx
index 291d7e90fdef..e97bee11d078 100644
--- a/vcl/qt5/QtFontFace.cxx
+++ b/vcl/qt5/QtFontFace.cxx
@@ -35,6 +35,7 @@
#include <QtGui/QFontDatabase>
#include <QtGui/QFontInfo>
#include <QtGui/QRawFont>
+#include <utility>
using namespace vcl;
@@ -160,10 +161,9 @@ QtFontFace* QtFontFace::fromQFontDatabase(const QString& aFamily, const QString&
FontIdType::FontDB);
}
-QtFontFace::QtFontFace(const FontAttributes& rFA, const QString& rFontID,
- const FontIdType eFontIdType)
+QtFontFace::QtFontFace(const FontAttributes& rFA, QString aFontID, const FontIdType eFontIdType)
: PhysicalFontFace(rFA)
- , m_aFontId(rFontID)
+ , m_aFontId(std::move(aFontID))
, m_eFontIdType(eFontIdType)
, m_bFontCapabilitiesRead(false)
{