From 9766b8a2f2b8707f46fc0ead426e71d65e5ad1fd Mon Sep 17 00:00:00 2001 From: sdottaka Date: Sun, 15 May 2011 23:12:30 +0900 Subject: [PATCH] Move STRINGDIFF_LOGGING macro to stringdiffsi.h --- Src/stringdiffs.cpp | 6 +----- Src/stringdiffsi.h | 5 +++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Src/stringdiffs.cpp b/Src/stringdiffs.cpp index 4eb39a106..e5cd37b02 100644 --- a/Src/stringdiffs.cpp +++ b/Src/stringdiffs.cpp @@ -18,10 +18,6 @@ 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; diff --git a/Src/stringdiffsi.h b/Src/stringdiffsi.h index 6b65b71b0..b8427f37e 100644 --- a/Src/stringdiffsi.h +++ b/Src/stringdiffsi.h @@ -11,6 +11,11 @@ #define stringdiffsi_h_included #include + +// 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. */ -- 2.11.0