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

Unified Diff: samples/swarm/swarm_ui_lib/layout/GridLayout.dart

Issue 12328104: Change new List(n) to return fixed length list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head. Created 7 years, 10 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
Index: samples/swarm/swarm_ui_lib/layout/GridLayout.dart
diff --git a/samples/swarm/swarm_ui_lib/layout/GridLayout.dart b/samples/swarm/swarm_ui_lib/layout/GridLayout.dart
index 47c2f10011ee6f83cf638ec9a56356dee495e94d..24a01e71af6d10367cda667fe461cde213c1fc5a 100644
--- a/samples/swarm/swarm_ui_lib/layout/GridLayout.dart
+++ b/samples/swarm/swarm_ui_lib/layout/GridLayout.dart
@@ -506,7 +506,7 @@ class GridLayout extends ViewLayout {
assert(start >= 0 && span >= 1);
- final result = new List<GridTrack>.fixedLength(span);
+ final result = new List<GridTrack>(span);
for (int i = 0; i < span; i++) {
result[i] = tracks[start + i];
}

Powered by Google App Engine
This is Rietveld 408576698