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

Side by Side Diff: compiled/StringMap.h

Issue 29411657: Noissue - [emscripten] Address compiler warnings (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Created April 13, 2017, 3:46 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2017 eyeo GmbH 3 * Copyright (C) 2006-2017 eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 template<typename T> 312 template<typename T>
313 class StringMap 313 class StringMap
314 : public StringMap_internal::HashContainer<StringMap_internal::StringMapEntry< T>> 314 : public StringMap_internal::HashContainer<StringMap_internal::StringMapEntry< T>>
315 { 315 {
316 public: 316 public:
317 typedef StringMap_internal::HashContainer<StringMap_internal::StringMapEntry<T >> super; 317 typedef StringMap_internal::HashContainer<StringMap_internal::StringMapEntry<T >> super;
318 typedef typename super::size_type size_type; 318 typedef typename super::size_type size_type;
319 typedef typename super::entry_type entry_type; 319 typedef typename super::entry_type entry_type;
320 typedef typename super::const_reference const_reference; 320 typedef typename super::const_reference const_reference;
321 typedef StringMap_internal::StringMapEntryReference<T> reference; 321 typedef StringMap_internal::StringMapEntryReference<T> reference;
322 friend class StringMap_internal::StringMapEntryReference<T>; 322 friend struct StringMap_internal::StringMapEntryReference<T>;
323 323
324 explicit StringMap(size_type expectedEntries = 0) 324 explicit StringMap(size_type expectedEntries = 0)
325 : super(expectedEntries) 325 : super(expectedEntries)
326 { 326 {
327 } 327 }
328 328
329 StringMap(std::initializer_list<entry_type> list) 329 StringMap(std::initializer_list<entry_type> list)
330 : super(list.size()) 330 : super(list.size())
331 { 331 {
332 for (const auto& item : list) 332 for (const auto& item : list)
(...skipping 15 matching lines...) Expand all
348 const_reference find(const String& key) const 348 const_reference find(const String& key) const
349 { 349 {
350 return super::find(key); 350 return super::find(key);
351 } 351 }
352 352
353 reference find(const String& key) 353 reference find(const String& key)
354 { 354 {
355 return reference(this, key, super::find_bucket(key)); 355 return reference(this, key, super::find_bucket(key));
356 } 356 }
357 }; 357 };
OLDNEW
« compile ('K') | « compiled/String.h ('k') | compiled/filter/ActiveFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld