hhctrl: Add the WebBrowser implementation
Dmitry Timoshkov
dmitry at baikal.ru
Wed Jul 27 08:57:31 CDT 2005
"Alexandre Julliard" <julliard at winehq.org> wrote:
>> > +#define ICOM_THIS_MULTI(impl,field,iface) impl* const This=(impl*)((char*)(iface) - offsetof(impl,field))
>>
>> IMO using 'const' before the type looks more natural. Also adding 'const'
>> to all type conversions wouldn't hurt:
>>
>> const impl* This = (const impl*)((const char*)(iface) - offsetof(impl,field))
>
> That means something completely different. 'const impl* This' and
> 'impl* const This' are not the same thing.
Right, I think that const pointer is not what James had in mind,
but a const area pointed out by a pointer.
--
Dmitry.
More information about the wine-devel
mailing list