From 79e900a6893237b41b0d53a548c03e0f247e806d Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 3 Dec 2023 00:35:23 +0900 Subject: Replaced various '#define' with actual strings - part 5 Signed-off-by: Michele Calgaro --- libktorrent/util/log.cpp | 4 ++-- plugins/upnp/upnpdescriptionparser.cpp | 2 +- 2 files changed, 3 insertions(+), 3 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; } }; diff --git a/plugins/upnp/upnpdescriptionparser.cpp b/plugins/upnp/upnpdescriptionparser.cpp index 1e73362..eb9d360 100644 --- a/plugins/upnp/upnpdescriptionparser.cpp +++ b/plugins/upnp/upnpdescriptionparser.cpp @@ -73,7 +73,7 @@ namespace kt if (!fptr.open(IO_ReadOnly)) return false; - TQXmlInputSource input(TQT_TQIODEVICE(&fptr)); + TQXmlInputSource input(&fptr); XMLContentHandler chandler(router); TQXmlSimpleReader reader; -- cgit v1.2.1