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

Unified Diff: src/plugin/PluginDebug.cpp

Issue 11013110: Cleanup (Closed)
Patch Set: Minor CallEngine refactoring Created July 26, 2013, 2:12 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
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)
{

Powered by Google App Engine
This is Rietveld