oleaut32: Constify some variables
Andrew Talbot
andrew.talbot at talbotville.com
Tue Jul 3 06:15:17 CDT 2007
Rob Shearman wrote:
>> -static OLEFontImpl* OLEFontImpl_Construct(LPFONTDESC fontDesc);
>> +static OLEFontImpl* OLEFontImpl_Construct(const FONTDESC *fontDesc);
>> static void OLEFontImpl_Destroy(OLEFontImpl* fontDesc);
>> static ULONG WINAPI OLEFontImpl_AddRef(IFont* iface);
>Even if the compiler allows this, it does not make sense. Why would a
>constructor not want to modify the object it is constructing?
If I'm not mistaken, the input parameter points to the template from which it is copying, rather than the object it is constructing, in this case.
--
Andy.
[Sorry. I sent this without a subject line, just now.]
More information about the wine-devel
mailing list