[PATCH 1/5] reg: Constify the type member of struct reg_type_rels

Alexandre Julliard julliard at winehq.org
Mon Apr 5 13:13:44 CDT 2021


Hugh McMaster <hugh.mcmaster at outlook.com> writes:

> Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
> ---
>  programs/reg/reg.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/programs/reg/reg.h b/programs/reg/reg.h
> index c7719a6e4f0..c281770bdb4 100644
> --- a/programs/reg/reg.h
> +++ b/programs/reg/reg.h
> @@ -27,7 +27,7 @@
>  
>  /* reg.c */
>  struct reg_type_rels {
> -    DWORD type;
> +    const DWORD type;
>      const WCHAR *name;
>  };

Declaring structure members as const is in general not useful, and
potentially makes the struct harder to use.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list