Alex Henrie : mshtml: Remove string constant macros from navigate.c.
Module: wine Branch: master Commit: b1391caf64da2b4f458cdabe3479a2f9fdf43653 URL: https://gitlab.winehq.org/wine/wine/-/commit/b1391caf64da2b4f458cdabe3479a2f... Author: Alex Henrie <alexhenrie24(a)gmail.com> Date: Sun Nov 27 15:05:07 2022 -0700 mshtml: Remove string constant macros from navigate.c. Having an extra layer of indirection here makes the code less clear. --- dlls/mshtml/navigate.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dlls/mshtml/navigate.c b/dlls/mshtml/navigate.c index fa6a09c31e3..fd92483cbf5 100644 --- a/dlls/mshtml/navigate.c +++ b/dlls/mshtml/navigate.c @@ -41,10 +41,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml); -#define CONTENT_LENGTH "Content-Length" -#define UTF8_STR "utf-8" -#define UTF16_STR "utf-16" - struct nsProtocolStream { nsIInputStream nsIInputStream_iface; @@ -1152,10 +1148,10 @@ static HRESULT read_stream_data(nsChannelBSC *This, IStream *stream) if(first_read) { switch(This->bsc.bom) { case BOM_UTF8: - This->nschannel->charset = strdup(UTF8_STR); + This->nschannel->charset = strdup("utf-8"); break; case BOM_UTF16: - This->nschannel->charset = strdup(UTF16_STR); + This->nschannel->charset = strdup("utf-16"); case BOM_NONE: /* FIXME: Get charset from HTTP headers */; }
participants (1)
-
Alexandre Julliard