Make a function parameter const

actorid
Chris Robinson 13 years ago
parent c2611d035c
commit 033faba9c4

@ -258,7 +258,7 @@ namespace MWSound
}
}
void SoundManager::stopSound(MWWorld::Ptr::CellStore *cell)
void SoundManager::stopSound(const MWWorld::Ptr::CellStore *cell)
{
// Remove all references to objects belonging to a given cell
SoundMap::iterator snditer = mActiveSounds.begin();

@ -99,7 +99,7 @@ namespace MWSound
///< Stop the given object from playing the given sound, If no soundId is given,
/// all sounds for this reference will stop.
void stopSound(MWWorld::Ptr::CellStore *cell);
void stopSound(const MWWorld::Ptr::CellStore *cell);
///< Stop all sounds for the given cell.
void stopSound(const std::string& soundId);

Loading…
Cancel
Save