oleaut32: Constify some variables

Robert Shearman rob at codeweavers.com
Mon Jul 2 16:49:54 CDT 2007


Andrew Talbot 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?

-- 
Rob Shearman




More information about the wine-devel mailing list