diff --git a/tools/dbusxml2qt3/classgen.cpp b/tools/dbusxml2qt3/classgen.cpp index af2de88..6ded6ca 100644 --- a/tools/dbusxml2qt3/classgen.cpp +++ b/tools/dbusxml2qt3/classgen.cpp @@ -945,13 +945,13 @@ bool ClassGenerator::finishStreams(const TQString& baseName, writeFileFooter(headerStream); writeFileFooter(sourceStream); - TQIODevice* tqdevice = headerStream.tqdevice(); + TQIODevice* device = headerStream.device(); headerStream.unsetDevice(); - delete tqdevice; + delete device; - tqdevice = sourceStream.tqdevice(); + device = sourceStream.device(); sourceStream.unsetDevice(); - delete tqdevice; + delete device; return true; }