Permalink
Browse files

Misc and small code cleanups.

  • Loading branch information...
1 parent 11f0507 commit 8371853fcb5ab1a8ea3edb7543bd5fc1b5a26fb3 Yohann Ferreira committed Mar 26, 2013
Showing with 4 additions and 5 deletions.
  1. +4 −4 src/engine/mode_manager.cpp
  2. +0 −1 src/engine/video/image.h
@@ -111,13 +111,13 @@ ModeEngine::~ModeEngine()
IF_PRINT_WARNING(MODE_MANAGER_DEBUG)
<< "MODE MANAGER: ModeEngine destructor invoked" << std::endl;
// Delete any game modes on the stack
- while(_game_stack.size() != 0) {
+ while(!_game_stack.empty()) {
delete _game_stack.back();
_game_stack.pop_back();
}
// Delete any game modes on the push stack
- while(_push_stack.size() != 0) {
+ while(!_push_stack.empty()) {
delete _push_stack.back();
_push_stack.pop_back();
}
@@ -130,13 +130,13 @@ ModeEngine::~ModeEngine()
bool ModeEngine::SingletonInitialize()
{
// Delete any game modes on the stack
- while(_game_stack.size() != 0) {
+ while(!_game_stack.empty()) {
delete _game_stack.back();
_game_stack.pop_back();
}
// Delete any game modes on the push stack
- while(_push_stack.size() != 0) {
+ while(!_push_stack.empty()) {
delete _push_stack.back();
_push_stack.pop_back();
}
View
@@ -49,7 +49,6 @@
#include "image_base.h"
-struct U;
namespace hoa_mode_manager
{
class ParticleSystem;

0 comments on commit 8371853

Please sign in to comment.