Skip to content

Commit 34b7a14

Browse files
David JonesShadowNinja
David Jones
authored andcommittedAug 25, 2015
Change i++ to ++i
1 parent 2480f2d commit 34b7a14

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+125
-125
lines changed
 

Diff for: ‎src/client.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ MeshUpdateQueue::~MeshUpdateQueue()
8686

8787
for(std::vector<QueuedMeshUpdate*>::iterator
8888
i = m_queue.begin();
89-
i != m_queue.end(); i++)
89+
i != m_queue.end(); ++i)
9090
{
9191
QueuedMeshUpdate *q = *i;
9292
delete q;
@@ -113,7 +113,7 @@ void MeshUpdateQueue::addBlock(v3s16 p, MeshMakeData *data, bool ack_block_to_se
113113
*/
114114
for(std::vector<QueuedMeshUpdate*>::iterator
115115
i = m_queue.begin();
116-
i != m_queue.end(); i++)
116+
i != m_queue.end(); ++i)
117117
{
118118
QueuedMeshUpdate *q = *i;
119119
if(q->p == p)
@@ -146,7 +146,7 @@ QueuedMeshUpdate *MeshUpdateQueue::pop()
146146
bool must_be_urgent = !m_urgents.empty();
147147
for(std::vector<QueuedMeshUpdate*>::iterator
148148
i = m_queue.begin();
149-
i != m_queue.end(); i++)
149+
i != m_queue.end(); ++i)
150150
{
151151
QueuedMeshUpdate *q = *i;
152152
if(must_be_urgent && m_urgents.count(q->p) == 0)
@@ -617,7 +617,7 @@ void Client::step(float dtime)
617617
{
618618
for(std::map<int, u16>::iterator
619619
i = m_sounds_to_objects.begin();
620-
i != m_sounds_to_objects.end(); i++)
620+
i != m_sounds_to_objects.end(); ++i)
621621
{
622622
int client_id = i->first;
623623
u16 object_id = i->second;
@@ -642,7 +642,7 @@ void Client::step(float dtime)
642642
i != m_sounds_server_to_client.end();) {
643643
s32 server_id = i->first;
644644
int client_id = i->second;
645-
i++;
645+
++i;
646646
if(!m_sound->soundExists(client_id)) {
647647
m_sounds_server_to_client.erase(server_id);
648648
m_sounds_client_to_server.erase(client_id);
@@ -1105,7 +1105,7 @@ void Client::sendRemovedSounds(std::vector<s32> &soundList)
11051105
pkt << (u16) (server_ids & 0xFFFF);
11061106

11071107
for(std::vector<s32>::iterator i = soundList.begin();
1108-
i != soundList.end(); i++)
1108+
i != soundList.end(); ++i)
11091109
pkt << *i;
11101110

11111111
Send(&pkt);

Diff for: ‎src/client/tile.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class SourceImageCache
194194
public:
195195
~SourceImageCache() {
196196
for (std::map<std::string, video::IImage*>::iterator iter = m_images.begin();
197-
iter != m_images.end(); iter++) {
197+
iter != m_images.end(); ++iter) {
198198
iter->second->drop();
199199
}
200200
m_images.clear();
@@ -461,7 +461,7 @@ TextureSource::~TextureSource()
461461

462462
for (std::vector<TextureInfo>::iterator iter =
463463
m_textureinfo_cache.begin();
464-
iter != m_textureinfo_cache.end(); iter++)
464+
iter != m_textureinfo_cache.end(); ++iter)
465465
{
466466
//cleanup texture
467467
if (iter->texture)
@@ -471,7 +471,7 @@ TextureSource::~TextureSource()
471471

472472
for (std::vector<video::ITexture*>::iterator iter =
473473
m_texture_trash.begin(); iter != m_texture_trash.end();
474-
iter++) {
474+
++iter) {
475475
video::ITexture *t = *iter;
476476

477477
//cleanup trashed texture

0 commit comments

Comments
 (0)