@@ -13,8 +13,7 @@ void deleteEntry(NppPythonScript::ReplaceEntry* entry)
1313
1414void runReplace ()
1515{
16-
17- NppPythonScript::Replacer<NppPythonScript::Utf8CharTraits> replacer;
16+ NppPythonScript::Replacer<NppPythonScript::Utf8CharTraits> replacer;
1817 std::list<NppPythonScript::ReplaceEntry* > entries;
1918 bool moreEntries = replacer.startReplace (" aaabbbaaabb" , 12 , 0 , 0 , " (b+)" , " x$1x" , NppPythonScript::python_re_flag_normal, entries);
2019 ASSERT_EQ (2 , entries.size ());
@@ -26,26 +25,26 @@ void runReplace()
2625int main (int argc, char * argv[])
2726{
2827#ifdef _DEBUG
29- _CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
30- _CrtSetReportMode ( _CRT_WARN, _CRTDBG_MODE_FILE );
31- _CrtSetReportFile ( _CRT_WARN, _CRTDBG_FILE_STDOUT );
32- _CrtSetReportMode ( _CRT_ERROR, _CRTDBG_MODE_FILE );
33- _CrtSetReportFile ( _CRT_ERROR, _CRTDBG_FILE_STDOUT );
34- _CrtSetReportMode ( _CRT_ASSERT, _CRTDBG_MODE_FILE );
35- _CrtSetReportFile ( _CRT_ASSERT, _CRTDBG_FILE_STDOUT );
28+ _CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
29+ _CrtSetReportMode ( _CRT_WARN, _CRTDBG_MODE_FILE );
30+ _CrtSetReportFile ( _CRT_WARN, _CRTDBG_FILE_STDOUT );
31+ _CrtSetReportMode ( _CRT_ERROR, _CRTDBG_MODE_FILE );
32+ _CrtSetReportFile ( _CRT_ERROR, _CRTDBG_FILE_STDOUT );
33+ _CrtSetReportMode ( _CRT_ASSERT, _CRTDBG_MODE_FILE );
34+ _CrtSetReportFile ( _CRT_ASSERT, _CRTDBG_FILE_STDOUT );
3635 _CrtMemState state;
3736 _CrtMemCheckpoint (&state);
3837#endif
39-
38+
4039
4140 ::testing::InitGoogleTest (&argc, argv);
4241 RUN_ALL_TESTS ();
43-
42+
4443 // This function call is used to check if we've created memory leaks using startReplace
4544 // Gtest creates various static objects, so it can be a bit tricky to identify leaks with Gtest running
46- // It's left commented out as it normally serves no purpose. If it looks like there's leaks, then remove the
45+ // It's left commented out as it normally serves no purpose. If it looks like there's leaks, then remove the
4746 // test code above, and uncomment this runReplace() call to try to identify the source of the leak.
48- // runReplace();
47+ // runReplace();
4948
5049#ifdef _DEBUG
5150 _CrtMemDumpAllObjectsSince (&state);
0 commit comments