aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/src/commandqueue.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mhmake/src/commandqueue.h')
-rw-r--r--tools/mhmake/src/commandqueue.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/tools/mhmake/src/commandqueue.h b/tools/mhmake/src/commandqueue.h
index 84878067e..3642d2f1d 100644
--- a/tools/mhmake/src/commandqueue.h
+++ b/tools/mhmake/src/commandqueue.h
@@ -33,11 +33,19 @@ class commandqueue
{
struct activeentry
{
- refptr<fileinfo> pTarget;
- vector<string>::iterator CurrentCommandIt;
- string Command;
- md5_context md5ctx;
- bool IgnoreError;
+ refptr<fileinfo> pTarget;
+ vector<string>::const_iterator CurrentCommandIt;
+ string Command;
+ md5_context md5ctx;
+ bool IgnoreError;
+ void clear()
+ {
+ pTarget=NULL;
+ Command.clear();
+ #ifdef _DEBUG
+ md5ctx.Data.clear();
+ #endif
+ }
};
private:
queue< refptr<fileinfo> > m_Queue;