mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-06 23:52:31 -06:00
Merge pull request #17116 from Chocobo1/cleanup
Clean up usage of `static` keyword
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user