Converted some for loops to range-based for loops.
This commit is contained in:
parent
0000fa3e5e
commit
9d2bfcc334
9 changed files with 36 additions and 37 deletions
|
@ -57,7 +57,7 @@ template <typename T>
|
|||
void SoundFileFactory::unregisterReader()
|
||||
{
|
||||
// Remove the instance(s) of the reader from the array of factories
|
||||
for (ReaderFactoryArray::iterator it = s_readers.begin(); it != s_readers.end(); )
|
||||
for (auto it = s_readers.begin(); it != s_readers.end(); )
|
||||
{
|
||||
if (it->create == &priv::createReader<T>)
|
||||
it = s_readers.erase(it);
|
||||
|
@ -88,7 +88,7 @@ template <typename T>
|
|||
void SoundFileFactory::unregisterWriter()
|
||||
{
|
||||
// Remove the instance(s) of the writer from the array of factories
|
||||
for (WriterFactoryArray::iterator it = s_writers.begin(); it != s_writers.end(); )
|
||||
for (auto it = s_writers.begin(); it != s_writers.end(); )
|
||||
{
|
||||
if (it->create == &priv::createWriter<T>)
|
||||
it = s_writers.erase(it);
|
||||
|
|
|
@ -241,9 +241,9 @@ private:
|
|||
/// else
|
||||
/// {
|
||||
/// // The listener socket is not ready, test all other sockets (the clients)
|
||||
/// for (std::list<sf::TcpSocket*>::iterator it = clients.begin(); it != clients.end(); ++it)
|
||||
/// for (auto c : clients)
|
||||
/// {
|
||||
/// sf::TcpSocket& client = **it;
|
||||
/// sf::TcpSocket& client = *c;
|
||||
/// if (selector.isReady(client))
|
||||
/// {
|
||||
/// // The client has sent some data, we can receive it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue