Ignore:
Timestamp:
Apr 28, 2010, 1:31:57 PM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
0d111b, 93b12d
Parents:
075729
Message:

Added a small memory tracker to the programm.

Location:
molecuilder/src/Actions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/Actions/Action.cpp

    r075729 r90c4460  
    1111#include "Actions/ActionRegistry.hpp"
    1212#include "Actions/ActionHistory.hpp"
     13#include "Helpers/MemDebug.hpp"
    1314
    1415using namespace std;
    1516
    1617// An empty state to indicate success
    17 Action::state_ptr Action::success = Action::state_ptr(new ActionState());
    18 Action::state_ptr Action::failure = Action::state_ptr(new ActionState());
     18Action::state_ptr Action::success = Action::state_ptr(Memory::ignore(new ActionState()));
     19Action::state_ptr Action::failure = Action::state_ptr(Memory::ignore(new ActionState()));
    1920
    2021Action::Action(std::string _name,bool _doRegister) :
  • molecuilder/src/Actions/ActionHistory.cpp

    r075729 r90c4460  
    1212#include "Patterns/Singleton_impl.hpp"
    1313#include "Helpers/Assert.hpp"
     14#include "Helpers/MemDebug.hpp"
    1415
    1516using namespace std;
Note: See TracChangeset for help on using the changeset viewer.