6611 |
} |
} |
6612 |
} |
} |
6613 |
if (!pInstruments) return NULL; |
if (!pInstruments) return NULL; |
6614 |
InstrumentsIterator = pInstruments->begin(); |
if (index >= pInstruments->size()) return NULL; |
6615 |
for (size_t i = 0; InstrumentsIterator != pInstruments->end(); i++) { |
return static_cast<gig::Instrument*>( (*pInstruments)[index] ); |
|
if (i == index) return static_cast<gig::Instrument*>( *InstrumentsIterator ); |
|
|
InstrumentsIterator++; |
|
|
} |
|
|
return NULL; |
|
6616 |
} |
} |
6617 |
|
|
6618 |
/** @brief Add a new instrument definition. |
/** @brief Add a new instrument definition. |