Pass log messages by const ref (#5914)

* Pass log messages by const ref

* Rename method
This commit is contained in:
RickyRister 2025-05-05 06:46:29 -07:00 committed by GitHub
parent bd8306bd33
commit 4a54412d47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 9 additions and 9 deletions

View file

@ -28,7 +28,7 @@ public:
}
void logToFile(bool enabled);
void log(QtMsgType type, const QMessageLogContext &ctx, QString message);
void log(QtMsgType type, const QMessageLogContext &ctx, const QString &message);
QString getClientVersion();
QString getClientOperatingSystem();
QString getSystemArchitecture();
@ -57,10 +57,10 @@ protected:
void closeLogfileSession();
protected slots:
void internalLog(QString message);
void internalLog(const QString &message);
signals:
void logEntryAdded(QString message);
void logEntryAdded(const QString &message);
};
#endif