mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-10 23:07:59 +00:00
Add const to class function
This commit is contained in:
parent
230949ee3b
commit
f907328bdc
@ -191,7 +191,7 @@ void WebApplication::sendWebUIFile()
|
|||||||
sendFile(localPath);
|
sendFile(localPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebApplication::translateDocument(QString &data)
|
void WebApplication::translateDocument(QString &data) const
|
||||||
{
|
{
|
||||||
const QRegularExpression regex("QBT_TR\\((([^\\)]|\\)(?!QBT_TR))+)\\)QBT_TR\\[CONTEXT=([a-zA-Z_][a-zA-Z0-9_]*)\\]");
|
const QRegularExpression regex("QBT_TR\\((([^\\)]|\\)(?!QBT_TR))+)\\)QBT_TR\\[CONTEXT=([a-zA-Z_][a-zA-Z0-9_]*)\\]");
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ private:
|
|||||||
void sendFile(const QString &path);
|
void sendFile(const QString &path);
|
||||||
void sendWebUIFile();
|
void sendWebUIFile();
|
||||||
|
|
||||||
void translateDocument(QString &data);
|
void translateDocument(QString &data) const;
|
||||||
|
|
||||||
// Session management
|
// Session management
|
||||||
QString generateSid() const;
|
QString generateSid() const;
|
||||||
|
Loading…
Reference in New Issue
Block a user