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
+4
-4
@@ -68,7 +68,7 @@ bool InputQueueCode::EnteredCode( GameController controller ) const
|
||||
|
||||
// iterate newest to oldest
|
||||
int iSequenceIndex = m_aPresses.size()-1; // count down
|
||||
const vector<InputEventPlus> &aQueue = INPUTQUEUE->GetQueue( controller );
|
||||
const std::vector<InputEventPlus> &aQueue = INPUTQUEUE->GetQueue( controller );
|
||||
int iQueueIndex = aQueue.size()-1;
|
||||
while( iQueueIndex >= 0 )
|
||||
{
|
||||
@@ -130,7 +130,7 @@ bool InputQueueCode::EnteredCode( GameController controller ) const
|
||||
}
|
||||
if( !bAllHeldButtonsOK )
|
||||
continue;
|
||||
iMinSearchIndexUsed = min( iMinSearchIndexUsed, iQueueSearchIndex );
|
||||
iMinSearchIndexUsed = std::min( iMinSearchIndexUsed, iQueueSearchIndex );
|
||||
if( b == (int) Press.m_aButtonsToPress.size()-1 )
|
||||
bMatched = true;
|
||||
}
|
||||
@@ -164,11 +164,11 @@ bool InputQueueCode::Load( RString sButtonsNames )
|
||||
{
|
||||
m_aPresses.clear();
|
||||
|
||||
vector<RString> asPresses;
|
||||
std::vector<RString> asPresses;
|
||||
split( sButtonsNames, ",", asPresses, false );
|
||||
for (RString &sPress : asPresses)
|
||||
{
|
||||
vector<RString> asButtonNames;
|
||||
std::vector<RString> asButtonNames;
|
||||
|
||||
split( sPress, "-", asButtonNames, false );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user