mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Clean up usage of static
keyword
They are either misused or redundant, so remove it.
This commit is contained in:
parent
c2c17fd053
commit
73faf67084
14 changed files with 106 additions and 138 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue