summaryrefslogtreecommitdiff
path: root/winaccessibility
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-04-23 14:44:03 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-04-23 14:45:38 +0100
commit3b7788908a622b8e2043bd64bd0e36ee43fd733c (patch)
tree88eb295c388410d16544ba1bd0d15adb499cd533 /winaccessibility
parenta339c949ed590b3bc033d8bc43f12b77d21587eb (diff)
winaccessibility: rename unhelpful string defines.
Change-Id: Ib73ddecb9fd49a2e1a5bb690a0f4bbbc77d9047a
Diffstat (limited to 'winaccessibility')
-rw-r--r--winaccessibility/source/UAccCOM/AccActionBase.cxx8
-rw-r--r--winaccessibility/source/UAccCOM/acccommon.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/winaccessibility/source/UAccCOM/AccActionBase.cxx b/winaccessibility/source/UAccCOM/AccActionBase.cxx
index b01e9c813a6b..fabdc4078ed3 100644
--- a/winaccessibility/source/UAccCOM/AccActionBase.cxx
+++ b/winaccessibility/source/UAccCOM/AccActionBase.cxx
@@ -68,12 +68,12 @@ void GetDfActionByUNORole(XAccessibleContext* pRContext, BSTR* pRet)
switch(Role)
{
case PUSH_BUTTON:
- *pRet = ::SysAllocString(PRESS);
+ *pRet = ::SysAllocString(PRESS_STR);
break;
case RADIO_BUTTON:
case MENU_ITEM:
case LIST_ITEM:
- *pRet = ::SysAllocString(SELECT);
+ *pRet = ::SysAllocString(SELECT_STR);
break;
case CHECK_BOX:
{
@@ -85,13 +85,13 @@ void GetDfActionByUNORole(XAccessibleContext* pRContext, BSTR* pRet)
Sequence<short> pStates = pRState->getStates();
int count = pStates.getLength();
- *pRet = ::SysAllocString(CHECK);
+ *pRet = ::SysAllocString(CHECK_STR);
for( int iIndex = 0;iIndex < count;iIndex++ )
{
if( pStates[iIndex] == AccessibleStateType::CHECKED )
{
SAFE_SYSFREESTRING(*pRet);
- *pRet = ::SysAllocString(UNCHECK);
+ *pRet = ::SysAllocString(UNCHECK_STR);
break;
}
}
diff --git a/winaccessibility/source/UAccCOM/acccommon.h b/winaccessibility/source/UAccCOM/acccommon.h
index b3458d0a9d73..869816ce44b4 100644
--- a/winaccessibility/source/UAccCOM/acccommon.h
+++ b/winaccessibility/source/UAccCOM/acccommon.h
@@ -53,10 +53,10 @@ enum DM_NIR {
};
-#define SELECT L"Select"
-#define PRESS L"Press"
-#define UNCHECK L"UnCheck"
-#define CHECK L"Check"
+#define SELECT_STR L"Select"
+#define PRESS_STR L"Press"
+#define UNCHECK_STR L"UnCheck"
+#define CHECK_STR L"Check"
//End
static DWORD GetMSAAStateFromUNO(short xState);