From 85cb46433073e5a92ec60adeedfe023da170a1d1 Mon Sep 17 00:00:00 2001 From: Abscissa Date: Sat, 25 Feb 2012 16:10:08 -0500 Subject: [PATCH 1/2] fix cgi to compile on windows --- cgi.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } From 168895801efb24bae31ab73d4a3faf51f2ef3d71 Mon Sep 17 00:00:00 2001 From: Abscissa Date: Sat, 25 Feb 2012 16:10:54 -0500 Subject: [PATCH 2/2] fix warnings --- characterencodings.d | 1 - dom.d | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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: {} } }