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

Unified Diff: corelib/src/implementation/splay_tree.dart

Issue 8400038: Use strict equality when comparing with null, especially when null is a default value. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « corelib/src/implementation/promise_implementation.dart ('k') | runtime/bin/file_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: corelib/src/implementation/splay_tree.dart
===================================================================
--- corelib/src/implementation/splay_tree.dart (revision 855)
+++ corelib/src/implementation/splay_tree.dart (working copy)
@@ -181,13 +181,13 @@
void forEach(void f(K key, V value)) {
List<SplayTreeNode<K, V>> list = new List<SplayTreeNode<K, V>>();
SplayTreeNode<K, V> current = _root;
- while (current != null) {
- if (current.left != null) {
+ while (current !== null) {
+ if (current.left !== null) {
list.add(current);
current = current.left;
} else {
f(current.key, current.value);
- while (current.right == null) {
+ while (current.right === null) {
if (list.isEmpty()) return;
current = list.removeLast();
f(current.key, current.value);
« no previous file with comments | « corelib/src/implementation/promise_implementation.dart ('k') | runtime/bin/file_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698