1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-03 19:45:34 +00:00

Make a function parameter const

This commit is contained in:
Chris Robinson 2012-03-27 03:00:04 -07:00
parent c2611d035c
commit 033faba9c4
2 changed files with 2 additions and 2 deletions

View file

@ -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 // Remove all references to objects belonging to a given cell
SoundMap::iterator snditer = mActiveSounds.begin(); SoundMap::iterator snditer = mActiveSounds.begin();

View file

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