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; |