From d633e0fed9dd429b2ff7cefe1596afd1fb1c81ba Mon Sep 17 00:00:00 2001 From: Kubat <mael.martin31@gmail.com> Date: Fri, 6 Aug 2021 09:27:18 +0200 Subject: [PATCH] DOC: Small little updates to doc --- CONTRIBUTING.md | 4 +--- src/Lib/Utils.hh | 10 ++++------ src/VivyApplication.hh | 4 ++-- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a28934fb..9c614dc0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -54,6 +54,4 @@ Some of the feature may not be used or not already be in use for multiple reasons: - the new C++20 modules feature is not used because I don't know how it - will play with `moc`. It's not supported by clangd for now anyway - - + will play with `moc`. It's not supported by clangd for now anyway. diff --git a/src/Lib/Utils.hh b/src/Lib/Utils.hh index e8095145..8c5a483b 100644 --- a/src/Lib/Utils.hh +++ b/src/Lib/Utils.hh @@ -136,7 +136,7 @@ enum class DocumentType : quint64 { /* Meta-types */ Audio = (WAVE | OGG | MP3 | M4A | OPUS | MP2 | AIFF | FLAC | ALAC), - Video = (MKV | MP4 | MOV | AVI | AV1 | M4V | FLV), + Video = (MKV | MP4 | MOV | AVI | AV1 | M4V | FLV) }; template <typename E> constexpr auto @@ -175,7 +175,7 @@ enum class AudioDocumentType : quint64 { MP2 = Utils::toUnderlying(Utils::DocumentType::MP2), AIFF = Utils::toUnderlying(Utils::DocumentType::AIFF), FLAC = Utils::toUnderlying(Utils::DocumentType::FLAC), - ALAC = Utils::toUnderlying(Utils::DocumentType::ALAC), + ALAC = Utils::toUnderlying(Utils::DocumentType::ALAC) }; // Video document types @@ -186,13 +186,11 @@ enum class VideoDocumentType : quint64 { AVI = Utils::toUnderlying(Utils::DocumentType::AVI), AV1 = Utils::toUnderlying(Utils::DocumentType::AV1), M4V = Utils::toUnderlying(Utils::DocumentType::M4V), - FLV = Utils::toUnderlying(Utils::DocumentType::FLV), + FLV = Utils::toUnderlying(Utils::DocumentType::FLV) }; // Ass document types -enum class AssDocumentType : quint64 { - ASS = Utils::toUnderlying(Utils::DocumentType::ASS), -}; +enum class AssDocumentType : quint64 { ASS = Utils::toUnderlying(Utils::DocumentType::ASS) }; } class QMenu; diff --git a/src/VivyApplication.hh b/src/VivyApplication.hh index 757dcff1..1ba91685 100644 --- a/src/VivyApplication.hh +++ b/src/VivyApplication.hh @@ -6,8 +6,8 @@ #define vivyApp static_cast<VivyApplication *>(QApplication::instance()) -#define currentVivyDocument() dynamic_cast<VivyDocument*>(vivyApp->getCurrentDocument()) -#define currentScriptDocument dynamic_cast<ScriptDocument*>(vivyApp->getCurrentDocument()) +#define currentVivyDocument() dynamic_cast<VivyDocument *>(vivyApp->getCurrentDocument()) +#define currentScriptDocument dynamic_cast<ScriptDocument *>(vivyApp->getCurrentDocument()) // Only support dark theme for now #define VIVY_ICON_APP ":icons/vivy.png" -- GitLab