issue #2415: Formating codes in SimpleAudioEngineOpenAL.cpp.

This commit is contained in:
James Chen 2013-07-22 10:43:23 +08:00
parent a60c3eaa20
commit 8c182d257d
1 changed files with 323 additions and 325 deletions

View File

@ -120,7 +120,7 @@ namespace CocosDenshion
if (bReleaseData) if (bReleaseData)
{ {
for (BackgroundMusicsMap::iterator it = s_backgroundMusics.begin(); it != s_backgroundMusics.end(); ++it) for (auto it = s_backgroundMusics.begin(); it != s_backgroundMusics.end(); ++it)
{ {
if (it->second->source == s_backgroundSource) if (it->second->source == s_backgroundSource)
{ {
@ -370,8 +370,6 @@ namespace CocosDenshion
void SimpleAudioEngine::setBackgroundMusicVolume(float volume) void SimpleAudioEngine::setBackgroundMusicVolume(float volume)
{ {
if (s_volume != volume && volume >= -0.0001 && volume <= 1.0001) if (s_volume != volume && volume >= -0.0001 && volume <= 1.0001)
{ {
s_volume = volume; s_volume = volume;