Replaced various '#define' with actual strings - part 5

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 4f29422c2b)
r14.1.x
Michele Calgaro 5 months ago
parent 5f98a5228d
commit c932624b68
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -82,7 +82,7 @@ FileHandler::FileRef::FileRef(const KURL& url_, bool quiet_, bool allowCompresse
if(allowCompressed_) {
m_device = KFilterDev::deviceForFile(m_filename);
} else {
m_device = TQT_TQIODEVICE(new TQFile(m_filename));
m_device = new TQFile(m_filename);
}
m_isValid = true;
}

@ -86,7 +86,7 @@ Tellico::Data::CollPtr AlexandriaImporter::collection() {
bool readNextLine = true;
ts.unsetDevice();
ts.setDevice(TQT_TQIODEVICE(&file));
ts.setDevice(&file);
TQString line;
while(!ts.atEnd()) {
if(readNextLine) {

@ -296,7 +296,7 @@ Tellico::Data::CollPtr AudioFileImporter::collection() {
continue;
}
ts.unsetDevice();
ts.setDevice(TQT_TQIODEVICE(&file));
ts.setDevice(&file);
for(TQString line = ts.readLine(); !line.isNull(); line = ts.readLine()) {
if(!iconRx.exactMatch(line)) {
continue;

@ -78,7 +78,7 @@ bool ONIXExporter::exec() {
TQByteArray data;
TQBuffer buf(data);
KZip zip(TQT_TQIODEVICE(&buf));
KZip zip(&buf);
zip.open(IO_WriteOnly);
zip.writeFile(TQString::fromLatin1("onix.xml"), TQString(), TQString(), xml.length(), xml);

@ -769,7 +769,7 @@ void TellicoImporter::loadZipData() {
m_zip = new KZip(fileRef().fileName());
} else {
m_buffer = new TQBuffer(data());
m_zip = new KZip(TQT_TQIODEVICE(m_buffer));
m_zip = new KZip(m_buffer);
}
if(!m_zip->open(IO_ReadOnly)) {
setStatusMessage(i18n(errorLoad).arg(url().fileName()));

@ -71,7 +71,7 @@ bool TellicoZipExporter::exec() {
return true; // intentionally cancelled
}
KZip zip(TQT_TQIODEVICE(&buf));
KZip zip(&buf);
zip.open(IO_WriteOnly);
zip.writeFile(TQString::fromLatin1("tellico.xml"), TQString(), TQString(), xml.length(), xml);

Loading…
Cancel
Save