Mercurial > projects > dwt-linux
changeset 171:b7d87b56bbc7
fix some != to correct !is
author | Thomas Graber <d4rkdragon@gmail.com> |
---|---|
date | Sat, 23 Feb 2008 18:23:33 +0100 |
parents | dd156298d22f |
children | f8e1b2d9e02f |
files | dwt/graphics/TextStyle.d |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/dwt/graphics/TextStyle.d Thu Feb 21 01:58:48 2008 +0100 +++ b/dwt/graphics/TextStyle.d Sat Feb 23 18:23:33 2008 +0100 @@ -163,17 +163,17 @@ public override char[] toString () { char[] buffer = "TextStyle {"; int startLength = buffer.length; - if (font != null) { + if (font !is null) { if (buffer.length > startLength) buffer ~= ", "; buffer ~= "font="; buffer ~= font.toString; } - if (foreground != null) { + if (foreground !is null) { if (buffer.length > startLength) buffer ~= ", "; buffer ~= "foreground="; buffer ~= foreground.toString; } - if (background != null) { + if (background !is null) { if (buffer.length > startLength) buffer ~= ", "; buffer ~= "background="; buffer ~= background.toString; @@ -191,7 +191,7 @@ buffer ~= "rise="; buffer ~= to!(char[])(rise); } - if (metrics != null) { + if (metrics !is null) { if (buffer.length > startLength) buffer ~= ", "; buffer ~= "metrics="; buffer ~= metrics.toString;