summaryrefslogtreecommitdiffstats
path: root/libktorrent/torrent/peerid.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-19 11:39:49 -0600
committerTimothy Pearson <[email protected]>2011-12-19 11:39:49 -0600
commitbb37c4052a9edfff2196984cef241b1ce2df7bb3 (patch)
tree20f184005dcb8d5315aec18cb3253c7ff452c8ca /libktorrent/torrent/peerid.cpp
parenta90eb215f53c95d81f95b32255098066d90556d9 (diff)
downloadktorrent-bb37c4052a9edfff2196984cef241b1ce2df7bb3.tar.gz
ktorrent-bb37c4052a9edfff2196984cef241b1ce2df7bb3.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'libktorrent/torrent/peerid.cpp')
-rw-r--r--libktorrent/torrent/peerid.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/libktorrent/torrent/peerid.cpp b/libktorrent/torrent/peerid.cpp
index 09b4bff..802fca6 100644
--- a/libktorrent/torrent/peerid.cpp
+++ b/libktorrent/torrent/peerid.cpp
@@ -174,7 +174,7 @@ namespace bt
Map["TS"] = "Torrent Storm";
Map["TT"] = "TuoTu";
Map["UL"] = "uLeecher!";
- Map["UT"] = TQString("%1Torrent").tqarg(TQChar(0x00B5)); // µTorrent, 0x00B5 is tqunicode for µ
+ Map["UT"] = TQString("%1Torrent").arg(TQChar(0x00B5)); // µTorrent, 0x00B5 is tqunicode for µ
Map["WT"] = "BitLet";
Map["WY"] = "FireTorrent";
Map["XL"] = "Xunlei";
@@ -201,31 +201,31 @@ namespace bt
}
TQString name = i18n("Unknown client");
- if (peer_id.tqat(0) == '-' &&
- peer_id.tqat(1).isLetter() &&
- peer_id.tqat(2).isLetter() ) //AZ style
+ if (peer_id.at(0) == '-' &&
+ peer_id.at(1).isLetter() &&
+ peer_id.at(2).isLetter() ) //AZ style
{
TQString ID(peer_id.mid(1,2));
if (Map.contains(ID))
- name = Map[ID] + " " + peer_id.tqat(3) + "." + peer_id.tqat(4) + "."
- + peer_id.tqat(5) + "." + peer_id.tqat(6);
+ name = Map[ID] + " " + peer_id.at(3) + "." + peer_id.at(4) + "."
+ + peer_id.at(5) + "." + peer_id.at(6);
}
- else if (peer_id.tqat(0).isLetter() &&
- peer_id.tqat(1).isDigit() &&
- peer_id.tqat(2).isDigit() ) //Shadow's style
+ else if (peer_id.at(0).isLetter() &&
+ peer_id.at(1).isDigit() &&
+ peer_id.at(2).isDigit() ) //Shadow's style
{
- TQString ID = TQString(peer_id.tqat(0));
+ TQString ID = TQString(peer_id.at(0));
if (Map.contains(ID))
- name = Map[ID] + " " + peer_id.tqat(1) + "." +
- peer_id.tqat(2) + "." + peer_id.tqat(3);
+ name = Map[ID] + " " + peer_id.at(1) + "." +
+ peer_id.at(2) + "." + peer_id.at(3);
}
- else if (peer_id.tqat(0) == 'M' && peer_id.tqat(2) == '-' && (peer_id.tqat(4) == '-' || peer_id.tqat(5) == '-'))
+ else if (peer_id.at(0) == 'M' && peer_id.at(2) == '-' && (peer_id.at(4) == '-' || peer_id.at(5) == '-'))
{
- name = Map["M"] + " " + peer_id.tqat(1) + "." + peer_id.tqat(3);
- if(peer_id.tqat(4) == '-')
- name += "." + peer_id.tqat(5);
+ name = Map["M"] + " " + peer_id.at(1) + "." + peer_id.at(3);
+ if(peer_id.at(4) == '-')
+ name += "." + peer_id.at(5);
else
- name += peer_id.tqat(4) + "." + peer_id.tqat(6);
+ name += peer_id.at(4) + "." + peer_id.at(6);
}
else if (peer_id.startsWith("OP"))
{
@@ -245,7 +245,7 @@ namespace bt
}
else if ( peer_id.startsWith("Mbrst"))
{
- name = Map["Mbrst"] + " " + peer_id.tqat(5) + "." + peer_id.tqat(7);
+ name = Map["Mbrst"] + " " + peer_id.at(5) + "." + peer_id.at(7);
}
return name;