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

Unified Diff: src/plugin/PluginDebug.cpp

Issue 4895405913407488: Issue #1234 - remove CString from declarations representing domains. (Closed)
Patch Set: Created Aug. 7, 2014, 7:46 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/PluginDebug.h ('k') | src/plugin/PluginDomTraverserBase.h » ('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
@@ -183,7 +183,7 @@
}
-void CPluginDebug::DebugResultBlocking(const CString& type, const CString& src, const CString& domain)
+void CPluginDebug::DebugResultBlocking(const CString& type, const CString& src, const std::wstring& domain)
{
CString srcTrunc = src;
if (srcTrunc.GetLength() > 100)
@@ -192,7 +192,7 @@
}
CString blocking;
- blocking.Format(L"Blocked %-12s %-20s %s", type, domain.IsEmpty()? L"-" : domain, srcTrunc);
+ blocking.Format(L"Blocked %-12s %-20s %s", type, domain.empty()? L"-" : to_CString(domain), srcTrunc);
DebugResult(blocking);
}
@@ -227,7 +227,7 @@
#ifdef ENABLE_DEBUG_RESULT_IGNORED
-void CPluginDebug::DebugResultIgnoring(const CString& type, const CString& src, const CString& domain)
+void CPluginDebug::DebugResultIgnoring(const CString& type, const CString& src, const std::wstring& domain)
{
CString srcTrunc = src;
if (srcTrunc.GetLength() > 100)
@@ -236,7 +236,7 @@
}
CString blocking;
- blocking.Format(L"Ignored %-12s %s %s", type, domain.IsEmpty()? L"-" : domain, srcTrunc);
+ blocking.Format(L"Ignored %-12s %s %s", type, domain.empty()? L"-" : to_CString(domain), srcTrunc);
DebugResult(blocking);
}
« no previous file with comments | « src/plugin/PluginDebug.h ('k') | src/plugin/PluginDomTraverserBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld