From 5bba09ee4570e1227de99565d41ae9fb6bc14ae1 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 13 Nov 2023 18:42:43 +0900 Subject: cmake conversion Signed-off-by: Michele Calgaro (cherry picked from commit 802b45c5566c3916e46250060ecef332f055fc26) --- src/cdmanager.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/cdmanager.cpp') diff --git a/src/cdmanager.cpp b/src/cdmanager.cpp index d0687fc..efcbac7 100644 --- a/src/cdmanager.cpp +++ b/src/cdmanager.cpp @@ -125,7 +125,7 @@ TQString CDManager::newCDDevice( const TQString& device ) CDDevice* cdDevice = new CDDevice( device ); for( TQValueList::Iterator it = cdDevices.begin(); it != cdDevices.end(); ++it ) { - if( (*it)->device = cdDevice->device ) { + if( (*it)->device == cdDevice->device ) { cdDevices.remove( *it ); delete (*it); break; @@ -139,7 +139,7 @@ TQString CDManager::newCDDevice( const TQString& device ) TQValueList CDManager::getTrackList( const TQString& device ) { for( TQValueList::Iterator it = cdDevices.begin(); it != cdDevices.end(); ++it ) { - if( (*it)->device = device ) return (*it)->tags; + if( (*it)->device == device ) return (*it)->tags; } TQValueList list; @@ -149,7 +149,7 @@ TQValueList CDManager::getTrackList( const TQString& device ) TagData* CDManager::getTags( const TQString& device, int track ) { for( TQValueList::Iterator it = cdDevices.begin(); it != cdDevices.end(); ++it ) { - if( (*it)->device = device ) { + if( (*it)->device == device ) { if( track > 0 ) { TQValueList::Iterator tag = (*it)->tags.at( track - 1 ); return (*tag); @@ -166,7 +166,7 @@ TagData* CDManager::getTags( const TQString& device, int track ) int CDManager::getTrackCount( const TQString& device ) { for( TQValueList::Iterator it = cdDevices.begin(); it != cdDevices.end(); ++it ) { - if( (*it)->device = device ) return (*it)->trackCount; + if( (*it)->device == device ) return (*it)->trackCount; } return 0; @@ -175,7 +175,7 @@ int CDManager::getTrackCount( const TQString& device ) int CDManager::getTimeCount( const TQString& device ) { for( TQValueList::Iterator it = cdDevices.begin(); it != cdDevices.end(); ++it ) { - if( (*it)->device = device ) return (*it)->timeCount; + if( (*it)->device == device ) return (*it)->timeCount; } return 0; @@ -184,7 +184,8 @@ int CDManager::getTimeCount( const TQString& device ) void CDManager::setDiscTags( const TQString& device, TagData* tags ) { for( TQValueList::Iterator it = cdDevices.begin(); it != cdDevices.end(); ++it ) { - if( (*it)->device = device ) (*it)->discTags = tags; + if( (*it)->device == device ) (*it)->discTags = tags; } } +#include "cdmanager.moc" -- cgit v1.2.3