Remove global "using namespace std;" declarations, use "std::" prefixes on all std elements
Fix whitespace changes
This commit is contained in:
committed by
Martin Natano
parent
f0680a29fc
commit
0cba3579de
+5
-5
@@ -613,7 +613,7 @@ RageSoundParams::StopMode_t RageSound::GetStopMode() const
|
||||
if( m_Param.StopMode != RageSoundParams::M_AUTO )
|
||||
return m_Param.StopMode;
|
||||
|
||||
if( m_sFilePath.find("loop") != string::npos )
|
||||
if( m_sFilePath.find("loop") != std::string::npos )
|
||||
return RageSoundParams::M_LOOP;
|
||||
else
|
||||
return RageSoundParams::M_STOP;
|
||||
@@ -621,19 +621,19 @@ RageSoundParams::StopMode_t RageSound::GetStopMode() const
|
||||
|
||||
void RageSound::SetStopModeFromString( const RString &sStopMode )
|
||||
{
|
||||
if( sStopMode.find("stop") != string::npos )
|
||||
if( sStopMode.find("stop") != std::string::npos )
|
||||
{
|
||||
m_Param.StopMode = RageSoundParams::M_STOP;
|
||||
}
|
||||
else if( sStopMode.find("loop") != string::npos )
|
||||
else if( sStopMode.find("loop") != std::string::npos )
|
||||
{
|
||||
m_Param.StopMode = RageSoundParams::M_LOOP;
|
||||
}
|
||||
else if( sStopMode.find("continue") != string::npos )
|
||||
else if( sStopMode.find("continue") != std::string::npos )
|
||||
{
|
||||
m_Param.StopMode = RageSoundParams::M_CONTINUE;
|
||||
}
|
||||
else if( sStopMode.find("auto") != string::npos )
|
||||
else if( sStopMode.find("auto") != std::string::npos )
|
||||
{
|
||||
m_Param.StopMode = RageSoundParams::M_AUTO;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user