fix warnings

This commit is contained in:
Abscissa 2012-02-25 16:10:54 -05:00
parent 85cb464330
commit 168895801e
2 changed files with 3 additions and 4 deletions

View File

@ -53,7 +53,6 @@ string convertToUtf8(immutable(ubyte)[] data, string dataCharacterEncoding) {
switch(encoding) {
default:
throw new Exception("I don't know how to convert " ~ dataCharacterEncoding ~ " to UTF-8");
break;
// since the input is immutable, these are ok too.
// just want to cover all the bases with one runtime function.
case "utf16":

6
dom.d
View File

@ -1754,7 +1754,7 @@ class DocumentFragment : Element {
}
///.
string writeToAppender(Appender!string where = appender!string()) const {
override string writeToAppender(Appender!string where = appender!string()) const {
return this.innerHTML(where);
}
}
@ -1967,7 +1967,7 @@ class RawSource : Element {
}
///.
string writeToAppender(Appender!string where = appender!string()) const {
override string writeToAppender(Appender!string where = appender!string()) const {
where.put(source);
return source;
}
@ -4402,7 +4402,7 @@ class CssStyle {
case "outline-left":
case "outline-right":
default: ;
default: {}
}
}