summaryrefslogtreecommitdiff
path: root/Ivy/Ivy.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Ivy/Ivy.cxx')
-rw-r--r--Ivy/Ivy.cxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/Ivy/Ivy.cxx b/Ivy/Ivy.cxx
index 54b7069..6284c0c 100644
--- a/Ivy/Ivy.cxx
+++ b/Ivy/Ivy.cxx
@@ -3,7 +3,13 @@
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
-//#include "libIvy.h"
+
+#ifdef _DEBUG
+#define DEBUG_NEW new(__FILE__, __LINE__)
+#define new DEBUG_NEW
+#endif
+
+
#include "Ivy.h"
#include "IvyWatcher.h"
@@ -28,7 +34,7 @@ Ivy::~Ivy()
stop();
regexp_out.clear();
- for ( int i = 0; i < callbacks.size(); i ++)
+ for ( unsigned int i = 0; i < callbacks.size(); i ++)
{
delete callbacks[i];
}
@@ -199,7 +205,7 @@ void Ivy::RemoveApplication(IvyApplication * app)
void Ivy::SendSubscriptions(IvyApplication *app)
{
app->SendMsg( IvyApplication::StartRegexp, GetApplicationPort(), appname.c_str());
- for ( int id = 0 ; id < regexp_out.size(); id++ )
+ for ( unsigned int id = 0 ; id < regexp_out.size(); id++ )
{
const string& regexp = regexp_out[id];
if ( !regexp.empty() )