Commit 6f5436f9 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

dwrite: Remove useless casts to self.

parent b3a464a8
......@@ -2420,7 +2420,7 @@ static HRESULT create_fontfamily(struct dwrite_fontcollection *collection, UINT3
BOOL is_system_collection(IDWriteFontCollection *collection)
{
void *obj;
return IDWriteFontCollection_QueryInterface(collection, &IID_issystemcollection, (void**)&obj) == S_OK;
return IDWriteFontCollection_QueryInterface(collection, &IID_issystemcollection, &obj) == S_OK;
}
static HRESULT WINAPI dwritesystemfontcollection_QueryInterface(IDWriteFontCollection1 *iface, REFIID riid, void **obj)
......
......@@ -2520,7 +2520,7 @@ static BOOL set_layout_range_attrval(struct layout_range_header *h, enum layout_
changed = set_layout_range_iface_attr((IUnknown**)&dest->object, (IUnknown*)value->u.object);
break;
case LAYOUT_RANGE_ATTR_EFFECT:
changed = set_layout_range_iface_attr((IUnknown**)&dest_iface->iface, (IUnknown*)value->u.effect);
changed = set_layout_range_iface_attr(&dest_iface->iface, value->u.effect);
break;
case LAYOUT_RANGE_ATTR_UNDERLINE:
changed = dest_bool->value != value->u.underline;
......@@ -2560,7 +2560,7 @@ static BOOL set_layout_range_attrval(struct layout_range_header *h, enum layout_
dest_spacing->min_advance = value->u.spacing.min_advance;
break;
case LAYOUT_RANGE_ATTR_TYPOGRAPHY:
changed = set_layout_range_iface_attr((IUnknown**)&dest_iface->iface, (IUnknown*)value->u.typography);
changed = set_layout_range_iface_attr(&dest_iface->iface, (IUnknown*)value->u.typography);
break;
default:
;
......
......@@ -538,7 +538,7 @@ struct ot_lookup_table
WORD subtable[1];
};
#define GLYPH_NOT_COVERED ((unsigned int)~0u)
#define GLYPH_NOT_COVERED (~0u)
struct ot_coverage_format1
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment