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

Unified Diff: compiled/filter/RegExpFilter.cpp

Issue 29715695: Noissue - get rid of compiler warnings (Closed) Base URL: github.com:adblockplus/adblockpluscore
Patch Set: Created March 6, 2018, 12:26 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 | « compiled/debug.h ('k') | compiled/library.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/filter/RegExpFilter.cpp
diff --git a/compiled/filter/RegExpFilter.cpp b/compiled/filter/RegExpFilter.cpp
index 318c4da6e193f48531b927f2592b1577203a4124..e66b6602c011c584464d29f6fee520dadd71b460 100644
--- a/compiled/filter/RegExpFilter.cpp
+++ b/compiled/filter/RegExpFilter.cpp
@@ -352,7 +352,7 @@ void RegExpFilter::GenerateCustomBindings()
for (const auto& item : typeMap)
{
std::string type(item.first.length(), '\0');
- for (int i = 0; i < item.first.length(); i++)
+ for (String::size_type i = 0; i < item.first.length(); i++)
type[i] = (item.first[i] == '-' ? '_' : toupper(item.first[i]));
printf(" %s: %i,\n", type.c_str(), item.second);
}
« no previous file with comments | « compiled/debug.h ('k') | compiled/library.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld