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

Unified Diff: samples/chat/chat_server_lib.dart

Issue 11312122: Change List constructors. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload. Adapt code for List.fixedLength. Created 8 years 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 | « runtime/vm/snapshot_test.dart ('k') | samples/dartcombat/grids.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/chat/chat_server_lib.dart
diff --git a/samples/chat/chat_server_lib.dart b/samples/chat/chat_server_lib.dart
index d8865ff7c953db02faff07ac1f69a1d1b0af212c..7bbf55242fbbacbc2556ef33318a423de1849543 100644
--- a/samples/chat/chat_server_lib.dart
+++ b/samples/chat/chat_server_lib.dart
@@ -639,7 +639,7 @@ class IsolatedServer {
class Rate {
Rate([int timeRange = 1000, int buckets = 10])
: _timeRange = timeRange,
- _buckets = new List(buckets + 1), // Current bucket is not in the sum.
+ _buckets = new List.fixedLength(buckets + 1), // Current bucket is not in the sum.
_currentBucket = 0,
_currentBucketTime = new Date.now().millisecondsSinceEpoch,
_sum = 0 {
« no previous file with comments | « runtime/vm/snapshot_test.dart ('k') | samples/dartcombat/grids.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698