Mercurial > projects > dwt-mac
diff dwt/graphics/FontData.d @ 154:535243e6d16a
Fixes to make dwt compile with ldc
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sat, 13 Jun 2009 00:25:05 +0200 |
parents | d8635bb48c7c |
children |
line wrap: on
line diff
--- a/dwt/graphics/FontData.d Thu Jun 11 01:36:32 2009 +0200 +++ b/dwt/graphics/FontData.d Sat Jun 13 00:25:05 2009 +0200 @@ -441,15 +441,15 @@ */ public String toString() { StringBuffer buffer = new StringBuffer(); - buffer.append("1|"); - buffer.append(getName()); - buffer.append("|"); - buffer.append(getHeightF()); - buffer.append("|"); - buffer.append(getStyle()); - buffer.append("|"); - buffer.append("COCOA|1|"); - if (nsName !is null) buffer.append(nsName); + buffer.format("{}", "1|"); + buffer.format("{}", getName()); + buffer.format("{}", "|"); + buffer.format("{}", getHeightF()); + buffer.format("{}", "|"); + buffer.format("{}", getStyle()); + buffer.format("{}", "|"); + buffer.format("{}", "COCOA|1|"); + if (nsName !is null) buffer.format("{}", nsName); return buffer.toString(); }