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

Unified Diff: src/plugin/PluginDebug.cpp

Issue 11013110: Cleanup (Closed)
Patch Set: More beautification and addressing comments Created July 29, 2013, 12:13 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/plugin/PluginConfiguration.cpp ('k') | src/plugin/PluginFilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/PluginDebug.cpp
===================================================================
--- a/src/plugin/PluginDebug.cpp
+++ b/src/plugin/PluginDebug.cpp
@@ -44,22 +44,12 @@
bool isWorkingThread = settings->IsWorkingThread(dwThreadId);
CString processor;
- if (settings->IsMainProcess(dwProcessId) && settings->IsMainThread(dwThreadId))
- {
- processor = L"main_thread";
- }
- else if (settings->IsMainProcess(dwProcessId) && settings->IsMainUiThread(dwThreadId))
- {
- processor = L"main_ui";
- }
- else if (isWorkingThread)
- {
- processor = L"tab" + settings->GetTabNumber() + L"_thread";
- }
+ wchar_t tmp[10];
+ _itow_s(::GetCurrentProcessId(), tmp, 10);
+ if (isWorkingThread)
+ processor = L"tab" + CString(tmp) + L"_thread";
else
- {
- processor = L"tab" + settings->GetTabNumber() + L"_ui";
- }
+ processor = L"tab" + CString(tmp) + L"_ui";
#else
if (dwProcessId == 0)
{
« no previous file with comments | « src/plugin/PluginConfiguration.cpp ('k') | src/plugin/PluginFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld