summaryrefslogtreecommitdiffstats
path: root/libktorrent/torrent/torrentcreator.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:39:49 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:39:49 -0600
commitbb37c4052a9edfff2196984cef241b1ce2df7bb3 (patch)
tree20f184005dcb8d5315aec18cb3253c7ff452c8ca /libktorrent/torrent/torrentcreator.cpp
parenta90eb215f53c95d81f95b32255098066d90556d9 (diff)
downloadktorrent-bb37c4052a9edfff2196984cef241b1ce2df7bb3.tar.gz
ktorrent-bb37c4052a9edfff2196984cef241b1ce2df7bb3.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'libktorrent/torrent/torrentcreator.cpp')
-rw-r--r--libktorrent/torrent/torrentcreator.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libktorrent/torrent/torrentcreator.cpp b/libktorrent/torrent/torrentcreator.cpp
index 5538b9e..fae7d75 100644
--- a/libktorrent/torrent/torrentcreator.cpp
+++ b/libktorrent/torrent/torrentcreator.cpp
@@ -120,7 +120,7 @@ namespace bt
{
File fptr;
if (!fptr.open(url,"wb"))
- throw Error(i18n("Cannot open file %1: %2").tqarg(url).tqarg(fptr.errorString()));
+ throw Error(i18n("Cannot open file %1: %2").arg(url).arg(fptr.errorString()));
BEncoder enc(&fptr);
enc.beginDict(); // top dict
@@ -147,7 +147,7 @@ namespace bt
enc.write(TQString("comments"));
enc.write(comments);
}
- enc.write(TQString("created by"));enc.write(TQString("KTorrent %1").tqarg(kt::VERSION_STRING));
+ enc.write(TQString("created by"));enc.write(TQString("KTorrent %1").arg(kt::VERSION_STRING));
enc.write(TQString("creation date"));enc.write((Uint64)time(0));
enc.write(TQString("info"));
saveInfo(enc);
@@ -237,7 +237,7 @@ namespace bt
File fptr;
if (!fptr.open(target,"rb"))
throw Error(i18n("Cannot open file %1: %2")
- .tqarg(target).tqarg(fptr.errorString()));
+ .arg(target).arg(fptr.errorString()));
Uint32 s = cur_chunk != num_chunks - 1 ? chunk_size : last_size;
fptr.seek(File::BEGIN,(Int64)cur_chunk*chunk_size);
@@ -275,7 +275,7 @@ namespace bt
if (!fptr.open(target + f.getPath(),"rb"))
{
throw Error(i18n("Cannot open file %1: %2")
- .tqarg(f.getPath()).tqarg(fptr.errorString()));
+ .arg(f.getPath()).arg(fptr.errorString()));
}
// first calculate offset into file
@@ -336,7 +336,7 @@ namespace bt
// write full index file
File fptr;
if (!fptr.open(dd + "index","wb"))
- throw Error(i18n("Cannot create index file: %1").tqarg(fptr.errorString()));
+ throw Error(i18n("Cannot create index file: %1").arg(fptr.errorString()));
for (Uint32 i = 0;i < num_chunks;i++)
{