summaryrefslogtreecommitdiff
path: root/winaccessibility/source
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-12-03 21:33:32 +0100
committerMichael Stahl <mstahl@redhat.com>2013-12-12 20:06:25 +0100
commitcbda6da004f1de8cdbf2b1298a835afa850be078 (patch)
tree747d2dd3bd48079e137cfe605d38ab5b82fbf924 /winaccessibility/source
parenta5c7ed21584b024d52d32917d1b07462a00e7405 (diff)
winaccessibility: InlineIsEqualGUID is defined by guiddef.h
Change-Id: Ia469076ec6f815133e77a14940e8afa05e177231
Diffstat (limited to 'winaccessibility/source')
-rw-r--r--winaccessibility/source/UAccCOM/MAccessible.cxx18
-rw-r--r--winaccessibility/source/UAccCOM/acccommon.h11
2 files changed, 10 insertions, 19 deletions
diff --git a/winaccessibility/source/UAccCOM/MAccessible.cxx b/winaccessibility/source/UAccCOM/MAccessible.cxx
index e7d9d3900796..954b519cd5d2 100644
--- a/winaccessibility/source/UAccCOM/MAccessible.cxx
+++ b/winaccessibility/source/UAccCOM/MAccessible.cxx
@@ -2614,19 +2614,21 @@ static AggMapEntry g_CMAccessible_AggMap[] = {
HRESULT WINAPI CMAccessible::SmartQI(void* /*pv*/, REFIID iid, void** ppvObject)
{
ENTER_PROTECTED_BLOCK
- ISDESTROY()
- if( ImplIsEqualGUID(iid,IID_IAccIdentity) ||
- ImplIsEqualGUID(iid,IID_IStdMarshalInfo) ||
- ImplIsEqualGUID(iid,IID_IMarshal) ||
- ImplIsEqualGUID(iid,IID_IExternalConnection)||
- ImplIsEqualGUID(iid,IID_IOleWindow))
- return E_FAIL;
+ ISDESTROY()
+ if (InlineIsEqualGUID(iid,IID_IAccIdentity) ||
+ InlineIsEqualGUID(iid,IID_IStdMarshalInfo) ||
+ InlineIsEqualGUID(iid,IID_IMarshal) ||
+ InlineIsEqualGUID(iid,IID_IExternalConnection)||
+ InlineIsEqualGUID(iid,IID_IOleWindow))
+ {
+ return E_FAIL;
+ }
AggMapEntry * pMap = &g_CMAccessible_AggMap[0];
while(pMap && pMap->piid)
{
- if(ImplIsEqualGUID(iid, *pMap->piid))
+ if (InlineIsEqualGUID(iid, *pMap->piid))
{
XInterface* pXI = NULL;
BOOL bFound = GetXInterfaceFromXAccessible(m_xAccessible.get(),
diff --git a/winaccessibility/source/UAccCOM/acccommon.h b/winaccessibility/source/UAccCOM/acccommon.h
index 9dc336a58632..2f6b5d6d2fa7 100644
--- a/winaccessibility/source/UAccCOM/acccommon.h
+++ b/winaccessibility/source/UAccCOM/acccommon.h
@@ -52,17 +52,6 @@ enum DM_NIR {
DM_PREVCHILD = 0x03
};
-inline BOOL ImplIsEqualGUID(REFGUID rguid1, REFGUID rguid2)
-{
- return (
- ((PLONG) &rguid1)[0] == ((PLONG) &rguid2)[0] &&
- ((PLONG) &rguid1)[1] == ((PLONG) &rguid2)[1] &&
- ((PLONG) &rguid1)[2] == ((PLONG) &rguid2)[2] &&
- ((PLONG) &rguid1)[3] == ((PLONG) &rguid2)[3]);
-}
-#define InlineIsEqualGUID ImplIsEqualGUID
-//End
-
#define SELECT L"Select"
#define PRESS L"Press"