Browse Source

Add const to class function

adaptive-webui-19844
Chocobo1 5 years ago
parent
commit
f907328bdc
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/webui/webapplication.cpp
  2. 2
      src/webui/webapplication.h

2
src/webui/webapplication.cpp

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

2
src/webui/webapplication.h

@ -105,7 +105,7 @@ private: @@ -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;

Loading…
Cancel
Save