Merge pull request #17116 from Chocobo1/cleanup

Clean up usage of `static` keyword
This commit is contained in:
Chocobo1
2022-05-31 12:39:30 +08:00
committed by GitHub
19 changed files with 185 additions and 240 deletions

View File

@@ -635,7 +635,7 @@ Path Session::downloadPath() const
bool Session::isValidCategoryName(const QString &name)
{
static const QRegularExpression re(uR"(^([^\\\/]|[^\\\/]([^\\\/]|\/(?=[^\/]))*[^\\\/])$)"_qs);
const QRegularExpression re(uR"(^([^\\\/]|[^\\\/]([^\\\/]|\/(?=[^\/]))*[^\\\/])$)"_qs);
if (!name.isEmpty() && (name.indexOf(re) != 0))
{
qDebug() << "Incorrect category name:" << name;

View File

@@ -35,7 +35,7 @@
#include "base/bittorrent/sessionstatus.h"
#include "base/profile.h"
static const qint64 SAVE_INTERVAL = 15 * 60 * 1000;
const qint64 SAVE_INTERVAL = 15 * 60 * 1000;
using namespace BitTorrent;