Mercurial > hg > syntilista
changeset 200:98eec4f3838b
Constify.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 15 Nov 2017 10:32:57 +0200 |
parents | 597a75429818 |
children | ea0247fab5a4 |
files | src/main.cpp src/main.h |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main.cpp Wed Nov 15 10:18:11 2017 +0200 +++ b/src/main.cpp Wed Nov 15 10:32:57 2017 +0200 @@ -108,7 +108,7 @@ // // Display an error dialog with given title and message // -int slErrorMsg(QString title, QString msg) +int slErrorMsg(const QString &title, const QString &msg) { QMessageBox dlg;
--- a/src/main.h Wed Nov 15 10:18:11 2017 +0200 +++ b/src/main.h Wed Nov 15 10:32:57 2017 +0200 @@ -85,7 +85,7 @@ const QString slDateTimeToStr(const QDateTime &val); void slLog(const QString &mtype, const QString &msg); -int slErrorMsg(QString title, QString msg); +int slErrorMsg(const QString &title, const QString &msg); bool slCheckAndReportSQLError(const QString where, const QSqlError &err, bool report = false); void slGetPersonInfoRec(QSqlQuery &query, SLPersonInfo &info);