# HG changeset patch # User Matti Hamalainen # Date 1498626745 -10800 # Node ID 064138b6d34ee8c864f369cae0f980faaa05663f # Parent 2477f46282c8a52eddab73599fa2d66bfe8a62f8 Rename getPersonInfo*() to slGetPersonInfo*(). diff -r 2477f46282c8 -r 064138b6d34e src/main.cpp --- a/src/main.cpp Wed Jun 28 08:11:33 2017 +0300 +++ b/src/main.cpp Wed Jun 28 08:12:25 2017 +0300 @@ -121,7 +121,7 @@ // // Get PersonInfo record from SQL query object // -void getPersonInfoRec(QSqlQuery &query, PersonInfo &info) +void slGetPersonInfoRec(QSqlQuery &query, PersonInfo &info) { info.id = query.value(0).toInt(); info.firstName = query.value(1).toString(); @@ -136,7 +136,7 @@ // // Get PersonInfo record from SQL database for specified person ID # // -bool getPersonInfo(qint64 id, PersonInfo &info) +bool slGetPersonInfo(qint64 id, PersonInfo &info) { QSqlQuery query; query.prepare( @@ -149,7 +149,7 @@ if (!query.next()) return false; - getPersonInfoRec(query, info); + slGetPersonInfoRec(query, info); query.finish(); return true; } @@ -432,7 +432,7 @@ if (id >= 0) { - if (!getPersonInfo(id, currPerson)) + if (!slGetPersonInfo(id, currPerson)) { statusMsg(tr("Virhe! Ei henkilöä ID:llä #%1").arg(id)); } @@ -510,7 +510,7 @@ } PersonInfo info; - if (!getPersonInfo(currPerson.id, info)) + if (!slGetPersonInfo(currPerson.id, info)) { statusMsg(tr("Virhe! Ei henkilöä ID:llä #%1").arg(currPerson.id)); return; @@ -712,7 +712,7 @@ // int SyntilistaMainWindow::addTransaction(qint64 id, double value, PersonInfo &info) { - if (!getPersonInfo(id, info)) + if (!slGetPersonInfo(id, info)) return -1; QSqlDatabase::database().transaction(); @@ -987,7 +987,7 @@ if (id >= 0) { PersonInfo pinfo; - if (!getPersonInfo(id, pinfo)) + if (!slGetPersonInfo(id, pinfo)) { statusMsg(tr("Virhe! Ei henkilöä ID:llä #%1").arg(id)); }