Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: src/plugin/PluginDebug.cpp

Issue 6523237609504768: Issue #276 - eliminate CString from CPluginMutex (Closed)
Patch Set: Created July 30, 2014, 5:56 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/plugin/PluginMutex.h » ('j') | src/plugin/PluginMutex.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include "PluginStdAfx.h" 1 #include "PluginStdAfx.h"
2 2
3 #include "PluginDebug.h" 3 #include "PluginDebug.h"
4 #include "PluginMutex.h" 4 #include "PluginMutex.h"
5 #include "PluginSettings.h" 5 #include "PluginSettings.h"
6 6
7 7
8 class CPluginDebugLock : public CPluginMutex 8 class CPluginDebugLock : public CPluginMutex
9 { 9 {
10 10
11 private: 11 private:
12 12
13 static CComAutoCriticalSection s_criticalSectionDebugLock; 13 static CComAutoCriticalSection s_criticalSectionDebugLock;
14 14
15 public: 15 public:
16 16
17 CPluginDebugLock() : CPluginMutex("DebugFile", PLUGIN_ERROR_MUTEX_DEBUG_FILE) 17 CPluginDebugLock() : CPluginMutex(L"DebugFile", PLUGIN_ERROR_MUTEX_DEBUG_FILE)
18 { 18 {
19 s_criticalSectionDebugLock.Lock(); 19 s_criticalSectionDebugLock.Lock();
20 } 20 }
21 21
22 ~CPluginDebugLock() 22 ~CPluginDebugLock()
23 { 23 {
24 s_criticalSectionDebugLock.Unlock(); 24 s_criticalSectionDebugLock.Unlock();
25 } 25 }
26 }; 26 };
27 27
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 srcTrunc = src.Left(67) + L"..." + src.Right(30); 237 srcTrunc = src.Left(67) + L"..." + src.Right(30);
238 } 238 }
239 239
240 CString blocking; 240 CString blocking;
241 blocking.Format(L"Ignored %-12s %s %s", type, domain.IsEmpty()? L"-" : doma in, srcTrunc); 241 blocking.Format(L"Ignored %-12s %s %s", type, domain.IsEmpty()? L"-" : doma in, srcTrunc);
242 242
243 DebugResult(blocking); 243 DebugResult(blocking);
244 } 244 }
245 245
246 #endif // ENABLE_DEBUG_RESULT_IGNORED 246 #endif // ENABLE_DEBUG_RESULT_IGNORED
OLDNEW
« no previous file with comments | « no previous file | src/plugin/PluginMutex.h » ('j') | src/plugin/PluginMutex.h » ('J')

Powered by Google App Engine
This is Rietveld