From 7cc2b8b6f55262d2abf5a261d920d2118aa49738 Mon Sep 17 00:00:00 2001 From: Kubat <mael.martin31@gmail.com> Date: Wed, 25 Aug 2021 15:11:48 +0200 Subject: [PATCH] MISC: Use more string literals with Qt as constructing a QString from a thing created with a QStringLiteral macro is apparently free --- src/Lib/Document/VivyDocument.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Lib/Document/VivyDocument.hh b/src/Lib/Document/VivyDocument.hh index 42e40ca3..8255799f 100644 --- a/src/Lib/Document/VivyDocument.hh +++ b/src/Lib/Document/VivyDocument.hh @@ -43,12 +43,12 @@ public: static QString runtimeVersion; - static inline const QString fileSuffix{ "vivy" }; + static inline const QString fileSuffix = QStringLiteral("vivy"); static inline constexpr Utils::DocumentType type = Utils::DocumentType::Vivy; - static constexpr inline quint64 possibleCapabilities = AudioAble | VideoAble | AssAble; + static inline constexpr quint64 possibleCapabilities = AudioAble | VideoAble | AssAble; private: - /* The document name */ + /* The document name, the filepath is {location}/{name}.{suffix} */ QString documentName; QDir documentLocation{ QDir::current() }; -- GitLab