1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 14:57:52 +00:00

Add const to class function

This commit is contained in:
Chocobo1 2019-08-14 20:27:06 +08:00
parent 230949ee3b
commit f907328bdc
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
2 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ void WebApplication::sendWebUIFile()
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_]*)\\]");

View File

@ -105,7 +105,7 @@ private:
void sendFile(const QString &path);
void sendWebUIFile();
void translateDocument(QString &data);
void translateDocument(QString &data) const;
// Session management
QString generateSid() const;