changeset 102:064138b6d34e

Rename getPersonInfo*() to slGetPersonInfo*().
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 28 Jun 2017 08:12:25 +0300
parents 2477f46282c8
children ce86ea4b08aa
files src/main.cpp
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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));
         }