Fix usage of TQString which would cause FTBFS with cmake

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/11/head
Michele Calgaro 11 months ago
parent 26f5e60720
commit 87bbf5db68
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -48,7 +48,7 @@ void k9PlayMPEG2::playTitle() {
/* open dvdnav handle */ /* open dvdnav handle */
if (dvdnav_open(&dvdnav, m_device,m_dvd) != DVDNAV_STATUS_OK) { if (dvdnav_open(&dvdnav, m_device.local8Bit(), m_dvd) != DVDNAV_STATUS_OK) {
setError("ERR:Error on dvdnav_open\n"); setError("ERR:Error on dvdnav_open\n");
return ; return ;
} }

@ -59,7 +59,7 @@ void k9BurnDVD::setburnDevice( const TQString& _newVal) {
/** Write property of TQString workDir. */ /** Write property of TQString workDir. */
void k9BurnDVD::setworkDir( const TQString& _newVal) { void k9BurnDVD::setworkDir( const TQString& _newVal) {
workDir = _newVal; workDir = _newVal;
if (workDir.right(1)!='/') if (workDir.right(1)!="/")
workDir +='/'; workDir +='/';
} }

@ -109,7 +109,7 @@ k9Cell *k9CellCopyList::addCell(int _VTS,int _pgc,int _id,uint32_t startSector,u
if (cell->startSector ==startSector && cell->vts==_VTS) { if (cell->startSector ==startSector && cell->vts==_VTS) {
bFound=true; bFound=true;
if (cell->lastSector!=lastSector ) if (cell->lastSector!=lastSector )
tqDebug("last sector doesn't match","DVD Backup"); tqDebug("last sector doesn't match DVD Backup");
} }
if (!bFound && (_VTS <cell->vts || (startSector<cell->startSector && cell->vts ==_VTS ) )) { if (!bFound && (_VTS <cell->vts || (startSector<cell->startSector && cell->vts ==_VTS ) )) {

@ -258,7 +258,7 @@ TQString k9DVD::lang_name(const TQString& code,const TQString & name) {
c = l.name; c = l.name;
} }
} else { } else {
if (strcmp(name.latin1(),l.name)==0) { if (name == l.name) {
c = l.code; c = l.code;
} }

@ -404,7 +404,7 @@ const TQString& k9DVDAuthor::getworkDir() {
} }
void k9DVDAuthor::setworkDir( const TQString& _newVal) { void k9DVDAuthor::setworkDir( const TQString& _newVal) {
workDir = _newVal; workDir = _newVal;
if (workDir.right(1)!='/') if (workDir.right(1)!="/")
workDir +='/'; workDir +='/';
} }

@ -76,7 +76,7 @@ void k9SaveImage::run() {
TQString sFileName=m_tempFile->name(); TQString sFileName=m_tempFile->name();
m_image.save(sFileName,"PNG"); m_image.save(sFileName,"PNG");
sFileName="\rINFOIMAGE:"+sFileName; sFileName="\rINFOIMAGE:"+sFileName;
fprintf(stderr,"%s",sFileName.data()); fprintf(stderr,"%s",sFileName.local8Bit());
m_mutex.unlock(); m_mutex.unlock();
} }

Loading…
Cancel
Save