summary refs log tree commit diff
path: root/src/timeline/TimelineModel.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-06-03 02:12:21 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-06-08 22:32:12 +0200
commit308efd48b6867603e6e16ee9927ed656835a1036 (patch)
tree99584bae04c46ec04cbe187a7c9ad3feb16daec2 /src/timeline/TimelineModel.cpp
parentRemove a few more QPairs (diff)
downloadnheko-308efd48b6867603e6e16ee9927ed656835a1036.tar.xz
Fix one more clazy issue
Diffstat (limited to 'src/timeline/TimelineModel.cpp')
-rw-r--r--src/timeline/TimelineModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp

index f3b3ce81..6cec615b 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp
@@ -1340,7 +1340,7 @@ TimelineModel::formatDateSeparator(QDate date) const QString fmt = QLocale::system().dateFormat(QLocale::LongFormat); if (now.date().year() == date.year()) { - QRegularExpression rx(QStringLiteral("[^a-zA-Z]*y+[^a-zA-Z]*")); + static QRegularExpression rx(QStringLiteral("[^a-zA-Z]*y+[^a-zA-Z]*")); fmt = fmt.remove(rx); }