diff options
author | lloyd <[email protected]> | 2007-03-03 23:46:18 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2007-03-03 23:46:18 +0000 |
commit | e4d501374fb23572727da8f01370fe9c1d803155 (patch) | |
tree | a8ab2c3312da13ed0f3a26a99d135937a92a7aa0 /src/libstate.cpp | |
parent | 9c99db0f0f8e61bb43bf51282aaf71e01cc05aa2 (diff) |
Use prefix rather than postfix increment in places where it can be used.
Diffstat (limited to 'src/libstate.cpp')
-rw-r--r-- | src/libstate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstate.cpp b/src/libstate.cpp index 9eaa8a8b3..e2a81d598 100644 --- a/src/libstate.cpp +++ b/src/libstate.cpp @@ -326,7 +326,7 @@ void Library_State::load(Modules& modules) set_transcoder(modules.transcoder()); std::vector<Allocator*> mod_allocs = modules.allocators(); - for(u32bit j = 0; j != mod_allocs.size(); j++) + for(u32bit j = 0; j != mod_allocs.size(); ++j) add_allocator(mod_allocs[j]); set_default_allocator(modules.default_allocator()); @@ -384,7 +384,7 @@ Library_State::~Library_State() cached_default_allocator = 0; - for(u32bit j = 0; j != allocators.size(); j++) + for(u32bit j = 0; j != allocators.size(); ++j) { allocators[j]->destroy(); delete allocators[j]; |