diff options
Diffstat (limited to 'kmymoney2/mymoney/storage/mymoneyseqaccessmgr.cpp')
-rw-r--r-- | kmymoney2/mymoney/storage/mymoneyseqaccessmgr.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kmymoney2/mymoney/storage/mymoneyseqaccessmgr.cpp b/kmymoney2/mymoney/storage/mymoneyseqaccessmgr.cpp index 869e2e4..f1420dc 100644 --- a/kmymoney2/mymoney/storage/mymoneyseqaccessmgr.cpp +++ b/kmymoney2/mymoney/storage/mymoneyseqaccessmgr.cpp @@ -1025,7 +1025,7 @@ void MyMoneySeqAccessMgr::loadAccounts(const TQMap<TQString, MyMoneyAccount>& ma int pos = lastId.find(TQRegExp("\\d+"), 0); if(pos != -1) { - m_nextAccountID = atol(lastId.mid(pos)); + m_nextAccountID = lastId.mid(pos).toLong(); } } @@ -1048,7 +1048,7 @@ void MyMoneySeqAccessMgr::loadTransactions(const TQMap<TQString, MyMoneyTransact int pos = lastId.find(TQRegExp("\\d+"), 0); if(pos != -1) { - m_nextTransactionID = atol(lastId.mid(pos)); + m_nextTransactionID = lastId.mid(pos).toLong(); } } @@ -1066,7 +1066,7 @@ void MyMoneySeqAccessMgr::loadInstitutions(const TQMap<TQString, MyMoneyInstitut int pos = lastId.find(TQRegExp("\\d+"), 0); if(pos != -1) { - m_nextInstitutionID = atol(lastId.mid(pos)); + m_nextInstitutionID = lastId.mid(pos).toLong(); } } @@ -1087,7 +1087,7 @@ void MyMoneySeqAccessMgr::loadPayees(const TQMap<TQString, MyMoneyPayee>& map) int pos = lastId.find(TQRegExp("\\d+"), 0); if(pos != -1) { - m_nextPayeeID = atol(lastId.mid(pos)); + m_nextPayeeID = lastId.mid(pos).toLong(); } } @@ -1105,7 +1105,7 @@ void MyMoneySeqAccessMgr::loadSecurities(const TQMap<TQString, MyMoneySecurity>& int pos = lastId.find(TQRegExp("\\d+"), 0); if(pos != -1) { - m_nextSecurityID = atol(lastId.mid(pos)); + m_nextSecurityID = lastId.mid(pos).toLong(); } } @@ -1329,7 +1329,7 @@ void MyMoneySeqAccessMgr::loadSchedules(const TQMap<TQString, MyMoneySchedule>& int pos = lastId.find(TQRegExp("\\d+"), 0); if(pos != -1) { - m_nextScheduleID = atol(lastId.mid(pos)); + m_nextScheduleID = lastId.mid(pos).toLong(); } } @@ -1531,7 +1531,7 @@ void MyMoneySeqAccessMgr::loadReports(const TQMap<TQString, MyMoneyReport>& map) int pos = lastId.find(TQRegExp("\\d+"), 0); if(pos != -1) { - m_nextReportID = atol(lastId.mid(pos)); + m_nextReportID = lastId.mid(pos).toLong(); } } @@ -1605,7 +1605,7 @@ void MyMoneySeqAccessMgr::loadBudgets(const TQMap<TQString, MyMoneyBudget>& map) int pos = lastId.find(TQRegExp("\\d+"), 0); if(pos != -1) { - m_nextBudgetID = atol(lastId.mid(pos)); + m_nextBudgetID = lastId.mid(pos).toLong(); } } |