diff dwt/internal/image/PngChunk.d @ 212:ab60f3309436

reverted the char[] to String and use the an alias.
author Frank Benoit <benoit@tionex.de>
date Mon, 05 May 2008 00:12:38 +0200
parents 1801ddeb8f32
children 36f5cb12e1a2
line wrap: on
line diff
--- a/dwt/internal/image/PngChunk.d	Sat Apr 26 10:01:48 2008 +0200
+++ b/dwt/internal/image/PngChunk.d	Mon May 05 00:12:38 2008 +0200
@@ -25,6 +25,7 @@
 import tango.core.Exception;
 import tango.text.convert.Format;
 import dwt.dwthelper.System;
+import dwt.dwthelper.utils;
 
 class PngChunk {
     byte[] reference;
@@ -374,7 +375,7 @@
  * Provided so that subclasses can override and add
  * data to the toString() call.
  */
-char[] contributeToString() {
+String contributeToString() {
     return "";
 }
 
@@ -384,10 +385,10 @@
  *
  * @return a string representation of the event
  */
-override public char[] toString() {
-    char[] buffer = Format( "{\n\tLength: {}\n\tType: {}{}\n\tCRC: {:X}\n}",
+override public String toString() {
+    String buffer = Format( "{\n\tLength: {}\n\tType: {}{}\n\tCRC: {:X}\n}",
         getLength(),
-        cast(char[]) getTypeBytes(),
+        cast(String) getTypeBytes(),
         contributeToString(),
         getCRC());
     return buffer;