summaryrefslogtreecommitdiffstats
path: root/libktorrent/util/log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libktorrent/util/log.cpp')
-rw-r--r--libktorrent/util/log.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libktorrent/util/log.cpp b/libktorrent/util/log.cpp
index 9594532..6030e99 100644
--- a/libktorrent/util/log.cpp
+++ b/libktorrent/util/log.cpp
@@ -22,7 +22,7 @@
#include <kprocess.h>
#include <klocale.h>
#include <tqdatetime.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqfile.h>
#include <tqptrlist.h>
#include <iostream>
@@ -79,8 +79,8 @@ namespace bt
// move all log files one up
for (Uint32 i = 10;i > 1;i--)
{
- TQString prev = TQString("%1-%2.gz").arg(file).arg(i - 1);
- TQString curr = TQString("%1-%2.gz").arg(file).arg(i);
+ TQString prev = TQString("%1-%2.gz").tqarg(file).tqarg(i - 1);
+ TQString curr = TQString("%1-%2.gz").tqarg(file).tqarg(i);
if (bt::Exists(prev))
bt::Move(prev,curr,true);
}
@@ -100,7 +100,7 @@ namespace bt
fptr.setName(file);
if (!fptr.open(IO_WriteOnly))
- throw Error(i18n("Cannot open log file %1 : %2").arg(file).arg(fptr.errorString()));
+ throw Error(i18n("Cannot open log file %1 : %2").tqarg(file).tqarg(fptr.errorString()));
out->setDevice(TQT_TQIODEVICE(&fptr));
}
@@ -116,7 +116,7 @@ namespace bt
// this could result in the loss of some messages
if (!rotate_job)
{
- *out << TQDateTime::currentDateTime().toString() << ": " << tmp << ::endl;
+ *out << TQDateTime::tqcurrentDateTime().toString() << ": " << tmp << ::endl;
fptr.flush();
if (to_cout)
std::cout << TQString(tmp.local8Bit()) << std::endl;