diff --git a/src/chatlog/textformatter.cpp b/src/chatlog/textformatter.cpp index 6b223f25d..0b5e2fcee 100644 --- a/src/chatlog/textformatter.cpp +++ b/src/chatlog/textformatter.cpp @@ -38,6 +38,7 @@ enum TextStyle static const QString HTML_CHARACTER_CODE = QStringLiteral("&#%1"); +// clang-format off static const QVector MARKDOWN_SYMBOLS { '*', '/', @@ -97,6 +98,7 @@ static const QVector urlPatterns { QRegularExpression("\\b(mailto|tox):[^ \\n]+@[^ \\n]+") }; +// clang-format on /** * @class TextFormatter * diff --git a/src/video/camerasource.cpp b/src/video/camerasource.cpp index 3d89a09e2..f0860894f 100644 --- a/src/video/camerasource.cpp +++ b/src/video/camerasource.cpp @@ -93,6 +93,7 @@ CameraSource::CameraSource() : deviceName{"none"} , device{nullptr} , mode(VideoMode()) +// clang-format off , cctx{nullptr} #if LIBAVCODEC_VERSION_INT < 3747941 , cctxOrig{nullptr} @@ -107,6 +108,8 @@ CameraSource::CameraSource() avdevice_register_all(); } +// clang-format on + /** * @brief Returns the singleton instance. */ diff --git a/src/widget/friendlistwidget.cpp b/src/widget/friendlistwidget.cpp index e088958d7..0a84e214c 100644 --- a/src/widget/friendlistwidget.cpp +++ b/src/widget/friendlistwidget.cpp @@ -57,6 +57,7 @@ Time getTime(const QDate& date) } QDate today = QDate::currentDate(); + // clang-format off const QMap dates { { Time::Today, today.addDays(0) }, { Time::Yesterday, today.addDays(-1) }, @@ -68,6 +69,7 @@ Time getTime(const QDate& date) { Time::Month4Ago, today.addMonths(-5) }, { Time::Month5Ago, today.addMonths(-6) }, }; + // clang-format on for (Time time : dates.keys()) { if (dates[time] <= date) { @@ -193,6 +195,7 @@ void FriendListWidget::setMode(Mode mode) QLocale ql(Settings::getInstance().getTranslation()); QDate today = QDate::currentDate(); #define COMMENT "Category for sorting friends by activity" + // clang-format off const QMap names { { Time::Today, tr("Today", COMMENT) }, { Time::Yesterday, tr("Yesterday", COMMENT) }, @@ -206,6 +209,7 @@ void FriendListWidget::setMode(Mode mode) { Time::Month4Ago, ql.monthName(today.addMonths(-4).month()) }, { Time::Month5Ago, ql.monthName(today.addMonths(-5).month()) }, }; + // clang-format on #undef COMMENT activityLayout = new QVBoxLayout();