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

Unified Diff: samples/dartcombat/views.dart

Issue 12473003: Remove deprecated StringBuffer.add, addAll and addCharCode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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/dartcombat/views.dart
diff --git a/samples/dartcombat/views.dart b/samples/dartcombat/views.dart
index 3ccf0b3af27bf30449ec157f7717de2982edfbc5..f7599066416533a6d22951e7e4834ef46f0b58ae 100644
--- a/samples/dartcombat/views.dart
+++ b/samples/dartcombat/views.dart
@@ -29,13 +29,13 @@ class PlayerGridView extends View {
String cell = "<div class='icons water'></div>";
StringBuffer _cells = new StringBuffer();
for (int i = 0 ; i < state.localGrid.cells.length; i++) {
- _cells.add(cell);
+ _cells.write(cell);
}
String cells = _cells.toString();
String row = "<div class='hbox'>${cells}</div>";
StringBuffer _rows = new StringBuffer();
for (int i = 0 ; i < state.localGrid.cells.length; i++) {
- _rows.add(row);
+ _rows.write(row);
}
String rows = _rows.toString();
String table = "<div class='vbox'>${rows}</div>";
@@ -178,13 +178,13 @@ class EnemyGridView extends View {
String cell = "<div class='icons water'></div>";
StringBuffer _cells = new StringBuffer();
for (int i = 0 ; i < state.enemyGrid.cells.length; i++) {
- _cells.add(cell);
+ _cells.write(cell);
}
String cells = _cells.toString();
String row = "<div class='hbox'>${cells}</div>";
StringBuffer _rows = new StringBuffer();
for (int i = 0 ; i < state.enemyGrid.cells.length; i++) {
- _rows.add(row);
+ _rows.write(row);
}
String rows = _rows.toString();
String table = "<div class='vbox'>${rows}</div>";

Powered by Google App Engine
This is Rietveld 408576698