diff options
author | Michele Calgaro <[email protected]> | 2023-11-13 18:42:43 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-14 20:57:09 +0900 |
commit | 802b45c5566c3916e46250060ecef332f055fc26 (patch) | |
tree | 1bd49a5d76709e620040d6474dff725d1f8fbbc2 /src/cdmanager.cpp | |
parent | 300613eef3cbb63f040fcbced2e03570791d16f3 (diff) | |
download | soundkonverter-802b45c5566c3916e46250060ecef332f055fc26.tar.gz soundkonverter-802b45c5566c3916e46250060ecef332f055fc26.zip |
cmake conversion
Signed-off-by: Michele Calgaro <[email protected]>
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" |