OSDN Git Service

Move STRINGDIFF_LOGGING macro to stringdiffsi.h
authorsdottaka <none@none>
Sun, 15 May 2011 14:12:30 +0000 (23:12 +0900)
committersdottaka <none@none>
Sun, 15 May 2011 14:12:30 +0000 (23:12 +0900)
Src/stringdiffs.cpp
Src/stringdiffsi.h

index 4eb39a1..e5cd37b 100644 (file)
 
 using std::vector;
 
-// Uncomment this to see stringdiff log messages
-// We don't use _DEBUG since stringdiff logging is verbose and slows down WinMerge
-// #define STRINGDIFF_LOGGING
-
 static bool Initialized;
 static bool CustomChars;
 static TCHAR *BreakChars;
@@ -231,7 +227,7 @@ stringdiffs::~stringdiffs()
 void
 stringdiffs::debugoutput()
 {
-       for (int i = 0; i < m_wdiffs.size(); i++)
+       for (size_t i = 0; i < m_wdiffs.size(); i++)
        {
                String str1;
                String str2;
index 6b65b71..b8427f3 100644 (file)
 #define stringdiffsi_h_included
 
 #include <vector>
+
+// Uncomment this to see stringdiff log messages
+// We don't use _DEBUG since stringdiff logging is verbose and slows down WinMerge
+//#define STRINGDIFF_LOGGING
+
 /**
  * @brief kind of diff blocks.
  */