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 Jan. 5, 2015, 4:15 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);
+ 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)
{
- 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