diff options
author | corvid <corvid@lavabit.com> | 2011-09-09 22:46:26 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2011-09-09 22:46:26 +0000 |
commit | 385da8286ca8f001a6f734dd322e5957ba50b63b (patch) | |
tree | cb8efd5ffe7330e923c46dfd417f0c77356856a3 /src/html.cc | |
parent | 453b40b9ac2cab77f711286a0d7bd05197ec9499 (diff) |
tiny a_Web_new() cleanup
Diffstat (limited to 'src/html.cc')
-rw-r--r-- | src/html.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/html.cc b/src/html.cc index 4cbcef1b..a50a183f 100644 --- a/src/html.cc +++ b/src/html.cc @@ -2138,8 +2138,7 @@ static bool Html_load_image(BrowserWindow *bw, DilloUrl *url, DilloWeb *Web; int ClientKey; /* Fill a Web structure for the cache query */ - Web = a_Web_new(url, requester); - Web->bw = bw; + Web = a_Web_new(bw, url, requester); Web->Image = Image; a_Image_ref(Image); Web->flags |= WEB_Image; @@ -2967,8 +2966,7 @@ void a_Html_load_stylesheet(DilloHtml *html, DilloUrl *url) } else { /* Fill a Web structure for the cache query */ int ClientKey; - DilloWeb *Web = a_Web_new(url, html->page_url); - Web->bw = html->bw; + DilloWeb *Web = a_Web_new(html->bw, url, html->page_url); if ((ClientKey = a_Capi_open_url(Web, Html_css_load_callback, NULL))) { ++html->bw->NumPendingStyleSheets; a_Bw_add_client(html->bw, ClientKey, 0); |