summaryrefslogtreecommitdiffstats
path: root/libktorrent/util/log.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-12-03 00:35:23 +0900
committerMichele Calgaro <[email protected]>2023-12-04 14:27:35 +0900
commit29628defddf2b42dd66059850b8a0111ec8f3747 (patch)
tree1651b751e90c4d17dd7573a293c49e622f97b26c /libktorrent/util/log.cpp
parentea5e56f7a54d9f2bc6d2c9523dd6d370d092915e (diff)
downloadktorrent-29628defddf2b42dd66059850b8a0111ec8f3747.tar.gz
ktorrent-29628defddf2b42dd66059850b8a0111ec8f3747.zip
Replaced various '#define' with actual strings - part 5
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 79e900a6893237b41b0d53a548c03e0f247e806d)
Diffstat (limited to 'libktorrent/util/log.cpp')
-rw-r--r--libktorrent/util/log.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libktorrent/util/log.cpp b/libktorrent/util/log.cpp
index 42e2716..ff83f1d 100644
--- a/libktorrent/util/log.cpp
+++ b/libktorrent/util/log.cpp
@@ -102,7 +102,7 @@ namespace bt
if (!fptr.open(IO_WriteOnly))
throw Error(i18n("Cannot open log file %1 : %2").arg(file).arg(fptr.errorString()));
- out->setDevice(TQT_TQIODEVICE(&fptr));
+ out->setDevice(&fptr);
}
void write(const TQString & line)
@@ -153,7 +153,7 @@ namespace bt
void logRotateDone()
{
fptr.open(IO_WriteOnly);
- out->setDevice(TQT_TQIODEVICE(&fptr));
+ out->setDevice(&fptr);
rotate_job = 0;
}
};