mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-04 15:51:37 +00:00
Using NS_REINTERPERT_CAST instead of NS_STATIC_CAST r=scc@netscape.com
This commit is contained in:
parent
f4acc98b16
commit
aae8cd6430
@ -374,7 +374,7 @@ nsSupportsHashtable::~nsSupportsHashtable()
|
||||
void*
|
||||
nsSupportsHashtable::Put(nsHashKey *aKey, void *aData)
|
||||
{
|
||||
nsISupports* element = NS_STATIC_CAST(nsISupports*, aData);
|
||||
nsISupports* element = NS_REINTERPRET_CAST(nsISupports*, aData);
|
||||
NS_IF_ADDREF(element);
|
||||
return nsHashtable::Put(aKey, aData);
|
||||
}
|
||||
@ -385,7 +385,7 @@ nsSupportsHashtable::Get(nsHashKey *aKey)
|
||||
void* data = nsHashtable::Get(aKey);
|
||||
if (!data)
|
||||
return nsnull;
|
||||
nsISupports* element = NS_STATIC_CAST(nsISupports*, data);
|
||||
nsISupports* element = NS_REINTERPRET_CAST(nsISupports*, data);
|
||||
NS_IF_ADDREF(element);
|
||||
return data;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user