Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -65,8 +65,8 @@ CAccessibleHyperlink::QueryInterface(REFIID iid, void** ppv)
|
||||
if (!acc)
|
||||
return E_NOINTERFACE;
|
||||
|
||||
*ppv = NS_STATIC_CAST(IAccessibleHyperlink*, this);
|
||||
(NS_REINTERPRET_CAST(IUnknown*, *ppv))->AddRef();
|
||||
*ppv = static_cast<IAccessibleHyperlink*>(this);
|
||||
(reinterpret_cast<IUnknown*>(*ppv))->AddRef();
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ CAccessibleHyperlink::get_anchor(long aIndex, VARIANT *aAnchor)
|
||||
if (NS_FAILED(rv))
|
||||
return E_FAIL;
|
||||
|
||||
IUnknown *unknownPtr = NS_STATIC_CAST(IUnknown*, instancePtr);
|
||||
IUnknown *unknownPtr = static_cast<IUnknown*>(instancePtr);
|
||||
aAnchor->ppunkVal = &unknownPtr;
|
||||
aAnchor->vt = VT_UNKNOWN;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user