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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/Clock.dart

Issue 10943005: Remove uses of String.operator+. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « no previous file | utils/template/world.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/Clock.dart
diff --git a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/Clock.dart b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/Clock.dart
index 401b4f1bf4b22cf53d560c853c682f0839e84630..9479e1abf75567bcb51729e2e90a5f4c6fdb3fab 100644
--- a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/Clock.dart
+++ b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/Clock.dart
@@ -12,14 +12,14 @@ class Util {
}
static void pos(Element elem, double x, double y) {
- elem.style.left = x.toRadixString(10) + 'PX';
- elem.style.top = y.toRadixString(10) + 'PX';
+ elem.style.left = "${x.toRadixString(10)}PX";
+ elem.style.top = "${y.toRadixString(10)}PX";
}
static void posSize(Element elem, double l, double t, double r, double b) {
pos(elem, l, t);
- elem.style.right = r.toRadixString(10) + 'PX';
- elem.style.bottom = b.toRadixString(10) + 'PX';
+ elem.style.right = "${r.toRadixString(10)}PX";
+ elem.style.bottom = "${b.toRadixString(10)}PX";
}
static int bounds(Element elem) {
@@ -425,19 +425,19 @@ class Clock {
String pad3(int num) {
if (num < 10) {
- return "00" + num;
+ return "00$num";
}
if (num < 100) {
- return "0" + num;
+ return "0$num";
}
- return "" + num;
+ return "$num";
}
String pad2(int num) {
if (num < 10) {
- return "0" + num;
+ return "0$num";
}
- return "" + num;
+ return "$num";
}
void createNumbers() {
« no previous file with comments | « no previous file | utils/template/world.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698