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

Unified Diff: src/plugin/PluginDebug.cpp

Issue 4912420225024000: Issue #1234 - Convert strings associated with URL's (Closed)
Patch Set: Created Oct. 14, 2014, 10:17 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
@@ -183,12 +183,12 @@
}
-void CPluginDebug::DebugResultBlocking(const CString& type, const CString& src, const std::wstring& domain)
+void CPluginDebug::DebugResultBlocking(const CString& type, const std::wstring& src, const std::wstring& domain)
{
- CString srcTrunc = src;
- if (srcTrunc.GetLength() > 100)
+ CString srcTrunc = ToCString(src);
sergei 2014/10/17 10:10:12 Despite it might be not a part of this change, I w
Eric 2014/10/20 02:36:01 Out of scope for this review. The whole debug log
+ if (src.length() > 100)
{
- srcTrunc = src.Left(67) + L"..." + src.Right(30);
+ srcTrunc = srcTrunc.Left(67) + L"..." + srcTrunc.Right(30);
}
CString blocking;
@@ -198,12 +198,12 @@
}
-void CPluginDebug::DebugResultHiding(const CString& tag, const CString& src, const CString& filter)
+void CPluginDebug::DebugResultHiding(const CString& tag, const CString& id, const CString& filter)
sergei 2014/10/17 10:10:12 Why is it renamed to id?
Eric 2014/10/20 02:36:01 That's how it is declared in the header, which bet
sergei 2014/10/21 09:45:17 In CPluginDomTraverser::HideElement we pass url, b
{
- CString srcTrunc = src;
+ CString srcTrunc = id;
if (srcTrunc.GetLength() > 100)
{
- srcTrunc = src.Left(67) + L"..." + src.Right(30);
+ srcTrunc = srcTrunc.Left(67) + L"..." + srcTrunc.Right(30);
}
CString blocking;
@@ -227,12 +227,12 @@
#ifdef ENABLE_DEBUG_RESULT_IGNORED
-void CPluginDebug::DebugResultIgnoring(const CString& type, const CString& src, const std::wstring& domain)
+void CPluginDebug::DebugResultIgnoring(const CString& type, const std::wstring& src, const std::wstring& domain)
{
- CString srcTrunc = src;
- if (srcTrunc.GetLength() > 100)
+ CString srcTrunc = ToCString(src);
+ if (src.length() > 100)
{
- srcTrunc = src.Left(67) + L"..." + src.Right(30);
+ srcTrunc = srcTrunc.Left(67) + L"..." + srcTrunc.Right(30);
}
CString blocking;

Powered by Google App Engine
This is Rietveld