Mercurial > dwindows
comparison win/edge.cpp @ 2164:05dd5189099f
Win: Fix some warnings reported with -W3 in Visual C.
Can compile with -W3 by issuing: "set DEBUG=Y" before building.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 30 Sep 2020 22:56:59 +0000 |
parents | a8b55524b1b2 |
children | da33732f182d |
comparison
equal
deleted
inserted
replaced
2163:98db0e81a514 | 2164:05dd5189099f |
---|---|
419 { | 419 { |
420 EdgeWebView* webview = (EdgeWebView*)dw_window_get_data(hwnd, _DW_HTML_DATA_NAME); | 420 EdgeWebView* webview = (EdgeWebView*)dw_window_get_data(hwnd, _DW_HTML_DATA_NAME); |
421 if (webview) | 421 if (webview) |
422 return webview->Raw(string); | 422 return webview->Raw(string); |
423 else | 423 else |
424 dw_window_set_data(hwnd, _DW_HTML_DATA_RAW, strdup(string)); | 424 dw_window_set_data(hwnd, _DW_HTML_DATA_RAW, _strdup(string)); |
425 return DW_ERROR_NONE; | 425 return DW_ERROR_NONE; |
426 } | 426 } |
427 | 427 |
428 /******************************* dw_edge_url() **************************** | 428 /******************************* dw_edge_url() **************************** |
429 * Displays a URL, or HTML file on disk. | 429 * Displays a URL, or HTML file on disk. |
438 { | 438 { |
439 EdgeWebView* webview = (EdgeWebView*)dw_window_get_data(hwnd, _DW_HTML_DATA_NAME); | 439 EdgeWebView* webview = (EdgeWebView*)dw_window_get_data(hwnd, _DW_HTML_DATA_NAME); |
440 if (webview) | 440 if (webview) |
441 return webview->URL(url); | 441 return webview->URL(url); |
442 else | 442 else |
443 dw_window_set_data(hwnd, _DW_HTML_DATA_LOCATION, strdup(url)); | 443 dw_window_set_data(hwnd, _DW_HTML_DATA_LOCATION, _strdup(url)); |
444 return DW_ERROR_NONE; | 444 return DW_ERROR_NONE; |
445 } | 445 } |
446 | 446 |
447 /******************************* dw_edge_javascript_run() **************************** | 447 /******************************* dw_edge_javascript_run() **************************** |
448 * Runs a javascript in the specified browser context. | 448 * Runs a javascript in the specified browser context. |