diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:33:51 -0600 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2012-06-03 15:53:28 +0200 |
commit | 4b54ad17739d1075235f2960ecde230a58b5621c (patch) | |
tree | 041d34c2e70d106209f97f8607698ccfe907c9b4 /kppp/accounting.cpp | |
parent | 6f21bc7511005a69a8ef14c2ad4e74857baf59f3 (diff) | |
download | tdenetwork-4b54ad17739d1075235f2960ecde230a58b5621c.tar.gz tdenetwork-4b54ad17739d1075235f2960ecde230a58b5621c.zip |
Rename old tq methods that no longer need a unique name
(cherry picked from commit 089118c18533dfa3e6ce5065dbebdd4db94051f1)
Diffstat (limited to 'kppp/accounting.cpp')
-rw-r--r-- | kppp/accounting.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kppp/accounting.cpp b/kppp/accounting.cpp index 2d7ab5d7..a01854a0 100644 --- a/kppp/accounting.cpp +++ b/kppp/accounting.cpp @@ -72,7 +72,7 @@ AccountingBase::AccountingBase(TQObject *parent) : _total(0), _session(0) { - TQDate dt = TQDate::tqcurrentDate(); + TQDate dt = TQDate::currentDate(); LogFileName = TQString("%1-%2.log") .tqarg(TQDate::shortMonthName(dt.month())) .tqarg(dt.year(), 4); @@ -233,7 +233,7 @@ void Accounting::timerEvent(TQTimerEvent *t) { double newLen; double connect_time = difftime(time(0), start_time); - rules.getActiveRule(TQDateTime::tqcurrentDateTime(), connect_time, newCosts, newLen); + rules.getActiveRule(TQDateTime::currentDateTime(), connect_time, newCosts, newLen); if(newLen < 1) { // changed to < 1 slotStop(); return; // no default rule found @@ -279,7 +279,7 @@ void Accounting::slotStart() { _lastcosts = 0.0; _lastlen = 0.0; _session = rules.perConnectionCosts(); - rules.setStartTime(TQDateTime::tqcurrentDateTime()); + rules.setStartTime(TQDateTime::currentDateTime()); acct_timer_id = startTimer(1); if(UPDATE_TIME > 0) update_timer_id = startTimer(UPDATE_TIME); |