diff --git a/cgi.d b/cgi.d index 24baf87..e76cf47 100644 --- a/cgi.d +++ b/cgi.d @@ -1764,8 +1764,8 @@ version(fastcgi) { /* Helpers for doing temporary files. Used both here and in web.d */ version(Windows) { - import core.sys.windows; - extern(Windows) DWORD GetTempPathW(DWORD, LPTSTR); + import core.sys.windows.windows; + extern(Windows) DWORD GetTempPathW(DWORD, LPWSTR); alias GetTempPathW GetTempPath; } diff --git a/characterencodings.d b/characterencodings.d index c3a69f2..8824883 100644 --- a/characterencodings.d +++ b/characterencodings.d @@ -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": diff --git a/dom.d b/dom.d index 0305d72..3e7550d 100644 --- a/dom.d +++ b/dom.d @@ -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: {} } }