tagging release
[dasher.git] / trunk / Src / DasherCore / UserLogParam.cpp
blob6d83af6a903d9977705dc213092973b9897ebdd6
2 #include "../Common/Common.h"
4 #include "UserLogParam.h"
6 // Track memory leaks on Windows to the line that new'd the memory
7 #ifdef _WIN32
8 #ifdef _DEBUG
9 #define DEBUG_NEW new( _NORMAL_BLOCK, THIS_FILE, __LINE__ )
10 #define new DEBUG_NEW
11 #undef THIS_FILE
12 static char THIS_FILE[] = __FILE__;
13 #endif
14 #endif
16 // Needed so we can sort() vectors of parameters
17 bool CUserLogParam::ComparePtr(CUserLogParam* pA, CUserLogParam* pB)
19 if ((pA == NULL) || (pB == NULL))
20 return false;
21 int iResult = pA->strName.compare(pB->strName);
23 if (iResult < 0)
24 return true;
25 else if (iResult == 0)
27 if (pA->strTimeStamp.compare(pB->strTimeStamp) < 0)
28 return true;
31 return false;