- Use int instead of short where possible

This commit is contained in:
Christophe Dumez
2007-08-28 16:55:14 +00:00
parent 6ecb45d661
commit 01df4d3c81
3 changed files with 4 additions and 4 deletions

View File

@@ -114,7 +114,7 @@ void DownloadingTorrents::notifyTorrentDoubleClicked(const QModelIndex& index) {
}
void DownloadingTorrents::addLogPeerBlocked(QString ip) {
static unsigned short nbLines = 0;
static unsigned int nbLines = 0;
++nbLines;
if(nbLines > 200) {
textBlockedUsers->clear();
@@ -184,7 +184,7 @@ void DownloadingTorrents::deleteTorrent(QString hash) {
// Update Info Bar information
void DownloadingTorrents::setInfoBar(QString info, QString color) {
static unsigned short nbLines = 0;
static unsigned int nbLines = 0;
++nbLines;
// Check log size, clear it if too big
if(nbLines > 200) {