Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: Source/wtf/HashTraits.h

Issue 23464095: WTF::notFound looks too much like a local variable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/wtf/HashMap.h ('k') | Source/wtf/NotFound.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All rights reserv ed.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 struct HashTraits<std::pair<First, Second> > : public PairHashTraits<HashTra its<First>, HashTraits<Second> > { }; 200 struct HashTraits<std::pair<First, Second> > : public PairHashTraits<HashTra its<First>, HashTraits<Second> > { };
201 201
202 template<typename KeyTypeArg, typename ValueTypeArg> 202 template<typename KeyTypeArg, typename ValueTypeArg>
203 struct KeyValuePair { 203 struct KeyValuePair {
204 typedef KeyTypeArg KeyType; 204 typedef KeyTypeArg KeyType;
205 205
206 KeyValuePair() 206 KeyValuePair()
207 { 207 {
208 } 208 }
209 209
210 KeyValuePair(const KeyTypeArg& key, const ValueTypeArg& value) 210 KeyValuePair(const KeyTypeArg& _key, const ValueTypeArg& _value)
211 : key(key) 211 : key(_key)
212 , value(value) 212 , value(_value)
213 { 213 {
214 } 214 }
215 215
216 template <typename OtherKeyType, typename OtherValueType> 216 template <typename OtherKeyType, typename OtherValueType>
217 KeyValuePair(const KeyValuePair<OtherKeyType, OtherValueType>& other) 217 KeyValuePair(const KeyValuePair<OtherKeyType, OtherValueType>& other)
218 : key(other.key) 218 : key(other.key)
219 , value(other.value) 219 , value(other.value)
220 { 220 {
221 } 221 }
222 222
(...skipping 29 matching lines...) Expand all
252 }; 252 };
253 253
254 } // namespace WTF 254 } // namespace WTF
255 255
256 using WTF::HashTraits; 256 using WTF::HashTraits;
257 using WTF::PairHashTraits; 257 using WTF::PairHashTraits;
258 using WTF::NullableHashTraits; 258 using WTF::NullableHashTraits;
259 using WTF::SimpleClassHashTraits; 259 using WTF::SimpleClassHashTraits;
260 260
261 #endif // WTF_HashTraits_h 261 #endif // WTF_HashTraits_h
OLDNEW
« no previous file with comments | « Source/wtf/HashMap.h ('k') | Source/wtf/NotFound.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698