diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-13 18:42:43 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-14 23:18:41 +0900 |
| commit | 5bba09ee4570e1227de99565d41ae9fb6bc14ae1 (patch) | |
| tree | 29d378b82102f1de620ee07a8167d569f7f031d7 /src/cdmanager.cpp | |
| parent | 546952a11f82de4741f508f401ab613c172ad293 (diff) | |
| download | soundkonverter-5bba09ee.tar.gz soundkonverter-5bba09ee.zip | |
cmake conversion
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 802b45c5566c3916e46250060ecef332f055fc26)
Diffstat (limited to 'src/cdmanager.cpp')
| -rw-r--r-- | src/cdmanager.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
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<CDDevice*>::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<TagData*> CDManager::getTrackList( const TQString& device ) { for( TQValueList<CDDevice*>::Iterator it = cdDevices.begin(); it != cdDevices.end(); ++it ) { - if( (*it)->device = device ) return (*it)->tags; + if( (*it)->device == device ) return (*it)->tags; } TQValueList<TagData*> list; @@ -149,7 +149,7 @@ TQValueList<TagData*> CDManager::getTrackList( const TQString& device ) TagData* CDManager::getTags( const TQString& device, int track ) { for( TQValueList<CDDevice*>::Iterator it = cdDevices.begin(); it != cdDevices.end(); ++it ) { - if( (*it)->device = device ) { + if( (*it)->device == device ) { if( track > 0 ) { TQValueList<TagData*>::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<CDDevice*>::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<CDDevice*>::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<CDDevice*>::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" |
