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

Unified Diff: src/plugin/PluginDebug.cpp

Issue 11013110: Cleanup (Closed)
Patch Set: Whole cleanup + comments addressed Created July 23, 2013, 11:34 a.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
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);
Felix Dahlke 2013/07/25 13:52:33 It'd be easier/safer to use std::wstringstream her
+ 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)
{

Powered by Google App Engine
This is Rietveld