summaryrefslogtreecommitdiffstats
path: root/kpat/dealer.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-19 11:55:35 -0600
committerSlávek Banko <[email protected]>2012-06-04 01:10:53 +0200
commit00e58f1937047eb6c23edbdb3ae7ed5feec7a572 (patch)
tree33b3465e8515be992049db8cc3fd529660f9731a /kpat/dealer.cpp
parent9e8c9cf72cdda55e3c96c7ef072c3358061d53c9 (diff)
downloadtdegames-00e58f1937047eb6c23edbdb3ae7ed5feec7a572.tar.gz
tdegames-00e58f1937047eb6c23edbdb3ae7ed5feec7a572.zip
Remove additional unneeded tq method conversions
(cherry picked from commit c0f375feba0103bed2bac1b1f05e76e9ae28fa89)
Diffstat (limited to 'kpat/dealer.cpp')
-rw-r--r--kpat/dealer.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kpat/dealer.cpp b/kpat/dealer.cpp
index d49c3f15..dbd27787 100644
--- a/kpat/dealer.cpp
+++ b/kpat/dealer.cpp
@@ -1160,14 +1160,14 @@ void Dealer::won()
{ // wrap in own scope to make KConfigGroupSave work
KConfig *config = kapp->config();
KConfigGroupSaver kcs(config, scores_group);
- unsigned int n = config->readUnsignedNumEntry(TQString("won%1").tqarg(_id),0) + 1;
- config->writeEntry(TQString("won%1").tqarg(_id),n);
- n = config->readUnsignedNumEntry(TQString("winstreak%1").tqarg(_id),0) + 1;
- config->writeEntry(TQString("winstreak%1").tqarg(_id),n);
- unsigned int m = config->readUnsignedNumEntry(TQString("maxwinstreak%1").tqarg(_id),0);
+ unsigned int n = config->readUnsignedNumEntry(TQString("won%1").arg(_id),0) + 1;
+ config->writeEntry(TQString("won%1").arg(_id),n);
+ n = config->readUnsignedNumEntry(TQString("winstreak%1").arg(_id),0) + 1;
+ config->writeEntry(TQString("winstreak%1").arg(_id),n);
+ unsigned int m = config->readUnsignedNumEntry(TQString("maxwinstreak%1").arg(_id),0);
if (n>m)
- config->writeEntry(TQString("maxwinstreak%1").tqarg(_id),n);
- config->writeEntry(TQString("loosestreak%1").tqarg(_id),0);
+ config->writeEntry(TQString("maxwinstreak%1").arg(_id),n);
+ config->writeEntry(TQString("loosestreak%1").arg(_id),0);
}
// sort cards by increasing z
@@ -1430,9 +1430,9 @@ void Dealer::countGame()
kdDebug(11111) << "counting game as played." << endl;
KConfig *config = kapp->config();
KConfigGroupSaver kcs(config, scores_group);
- unsigned int Total = config->readUnsignedNumEntry(TQString("total%1").tqarg(_id),0);
+ unsigned int Total = config->readUnsignedNumEntry(TQString("total%1").arg(_id),0);
++Total;
- config->writeEntry(TQString("total%1").tqarg(_id),Total);
+ config->writeEntry(TQString("total%1").arg(_id),Total);
_gameRecorded = true;
}
}
@@ -1443,12 +1443,12 @@ void Dealer::countLoss()
// update score
KConfig *config = kapp->config();
KConfigGroupSaver kcs(config, scores_group);
- unsigned int n = config->readUnsignedNumEntry(TQString("loosestreak%1").tqarg(_id),0) + 1;
- config->writeEntry(TQString("loosestreak%1").tqarg(_id),n);
- unsigned int m = config->readUnsignedNumEntry(TQString("maxloosestreak%1").tqarg(_id),0);
+ unsigned int n = config->readUnsignedNumEntry(TQString("loosestreak%1").arg(_id),0) + 1;
+ config->writeEntry(TQString("loosestreak%1").arg(_id),n);
+ unsigned int m = config->readUnsignedNumEntry(TQString("maxloosestreak%1").arg(_id),0);
if (n>m)
- config->writeEntry(TQString("maxloosestreak%1").tqarg(_id),n);
- config->writeEntry(TQString("winstreak%1").tqarg(_id),0);
+ config->writeEntry(TQString("maxloosestreak%1").arg(_id),n);
+ config->writeEntry(TQString("winstreak%1").arg(_id),0);
}
}