diff options
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" |