diff --git a/reference/WebImage/main.cpp b/reference/WebImage/main.cpp index 0b60f1bba..66c757110 100644 --- a/reference/WebImage/main.cpp +++ b/reference/WebImage/main.cpp @@ -1,22 +1,21 @@ -#include -#include - -using namespace Upp; - -struct MyApp : TopWindow { - Image img; - - virtual void Paint(Draw& w) { - w.DrawRect(GetSize(), Gray()); - w.DrawImage(0, 0, img); - } - - MyApp() { - img = StreamRaster::LoadStringAny(HttpClientGet("http://www.ultimatepp.org/1i.png")); - } -}; - -GUI_APP_MAIN -{ - MyApp().Run(); -} +#include + +using namespace Upp; + +struct MyApp : TopWindow { + Image img; + + virtual void Paint(Draw& w) { + w.DrawRect(GetSize(), Gray()); + w.DrawImage(0, 0, img); + } + + MyApp() { + img = StreamRaster::LoadStringAny(HttpRequest("http://www.ultimatepp.org/1i.png").Execute()); + } +}; + +GUI_APP_MAIN +{ + MyApp().Run(); +}