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

Unified Diff: samples/dartcombat/grids.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « samples/clock/numbers.dart ('k') | samples/dartcombat/player.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/dartcombat/grids.dart
diff --git a/samples/dartcombat/grids.dart b/samples/dartcombat/grids.dart
index 4a4c7ffee9374d6f3aca325cef6a3089183a0b58..2f5d3ba82144b194bfcfe64c3ab13dea1e081d03 100644
--- a/samples/dartcombat/grids.dart
+++ b/samples/dartcombat/grids.dart
@@ -21,9 +21,9 @@ class Boat {
class BoatGrid {
List<List<Boat>> boatMap;
- BoatGrid() : boatMap = new List(Constants.SIZE) {
+ BoatGrid() : boatMap = new List.fixedLength(Constants.SIZE) {
for (int i = 0; i < Constants.SIZE; i++) {
- boatMap[i] = new List(10);
+ boatMap[i] = new List.fixedLength(10);
}
}
@@ -61,9 +61,9 @@ class GridState {
List<List<int>> cells;
GridState()
- : cells = new List(Constants.SIZE) {
+ : cells = new List.fixedLength(Constants.SIZE) {
for (int i = 0; i < Constants.SIZE; i++) {
- cells[i] = new List(10);
+ cells[i] = new List.fixedLength(10);
}
}
« no previous file with comments | « samples/clock/numbers.dart ('k') | samples/dartcombat/player.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698