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

Unified Diff: compiled/ElemHide.cpp

Issue 29721753: Issue 6180 - use ABP_TEXT everywhere in order to let String be a UTF-8 string (Closed) Base URL: https://github.com/adblockplus/adblockpluscore.git@adb2678354813ce5b6de095072954c5a784a7bc4
Patch Set: rebase Created March 15, 2018, 1:53 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 | « .travis/travis-script.sh ('k') | compiled/Map.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/ElemHide.cpp
diff --git a/compiled/ElemHide.cpp b/compiled/ElemHide.cpp
index 88cd0b90b7e1eec25f3caaf64469c7f70583be60..ab72d8038e249bb0dd67cfbf9e89d522df133f1d 100644
--- a/compiled/ElemHide.cpp
+++ b/compiled/ElemHide.cpp
@@ -231,9 +231,9 @@ ElemHide_SelectorList* ElemHide::GetSelectorsForDomain(const String& domain,
if (currentDomain.empty())
break;
- auto nextDot = currentDomain.find(u'.');
+ auto nextDot = currentDomain.find(ABP_TEXT('.'));
currentDomain = nextDot == String::npos ?
- u""_str : DependentString(currentDomain, nextDot + 1);
+ ABP_TEXT(""_str) : DependentString(currentDomain, nextDot + 1);
}
return selectors.release();
« no previous file with comments | « .travis/travis-script.sh ('k') | compiled/Map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld