changeset 7751:eceb2234f22b

[DOSMETIC] Fix code format in GlassAccessible.cpp
author fheidric
date Thu, 21 Aug 2014 09:41:14 -0700
parents 59e71e06a1c6
children 5f6c2a2877d1
files modules/graphics/src/main/native-glass/win/GlassAccessible.cpp
diffstat 1 files changed, 16 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/native-glass/win/GlassAccessible.cpp	Thu Aug 21 14:34:30 2014 +0200
+++ b/modules/graphics/src/main/native-glass/win/GlassAccessible.cpp	Thu Aug 21 09:41:14 2014 -0700
@@ -158,9 +158,9 @@
                 if (vt == VT_UNKNOWN) {
                     //TODO make sure AddRef on elements is not required ?
                     SafeArrayPutElement(psa, &i,  (void*)longPtr[i]);
-                } else if (vt == VT_I4){
+                } else if (vt == VT_I4) {
                     SafeArrayPutElement(psa, &i, (void*)&(intPtr[i]));
-                } else if (vt == VT_R8){
+                } else if (vt == VT_R8) {
                     SafeArrayPutElement(psa, &i, (void*)&(doublePtr[i]));
                 }
             }
@@ -656,8 +656,8 @@
     if (env == NULL) return E_FAIL;
     jstring str = env->NewString((const jchar *)val, (jsize)size);
     if (!CheckAndClearException(env)) {
-    	env->CallVoidMethod(m_jAccessible, mid_SetValueString, str);
-    	if (CheckAndClearException(env)) return E_FAIL;
+        env->CallVoidMethod(m_jAccessible, mid_SetValueString, str);
+        if (CheckAndClearException(env)) return E_FAIL;
     }
     return S_OK;
 }
@@ -754,7 +754,8 @@
     return S_OK;
 }
 
-IFACEMETHODIMP GlassAccessible::get_RowCount(int *pRetVal) {
+IFACEMETHODIMP GlassAccessible::get_RowCount(int *pRetVal)
+{
     JNIEnv* env = GetEnv();
     if (env == NULL) return E_FAIL;
     *pRetVal = env->CallIntMethod(m_jAccessible, mid_get_RowCount);
@@ -762,7 +763,8 @@
     return S_OK;
 }
 
-IFACEMETHODIMP GlassAccessible::GetItem(int row, int column, IRawElementProviderSimple **pRetVal) {
+IFACEMETHODIMP GlassAccessible::GetItem(int row, int column, IRawElementProviderSimple **pRetVal)
+{
     if (pRetVal == NULL) return E_INVALIDARG;
     GlassAccessible* ptr = NULL;
     HRESULT hr = callLongMethod(mid_GetItem, &ptr, row, column);
@@ -773,7 +775,8 @@
 /***********************************************/
 /*              IGridItemProvider              */
 /***********************************************/
-IFACEMETHODIMP GlassAccessible::get_Column(int *pRetVal) {
+IFACEMETHODIMP GlassAccessible::get_Column(int *pRetVal)
+{
     JNIEnv* env = GetEnv();
     if (env == NULL) return E_FAIL;
     *pRetVal = env->CallIntMethod(m_jAccessible, mid_get_Column);
@@ -790,7 +793,8 @@
     return S_OK;
 }
 
-IFACEMETHODIMP GlassAccessible::get_ContainingGrid(IRawElementProviderSimple **pRetVal){
+IFACEMETHODIMP GlassAccessible::get_ContainingGrid(IRawElementProviderSimple **pRetVal)
+{
     if (pRetVal == NULL) return E_INVALIDARG;
     GlassAccessible* ptr = NULL;
     HRESULT hr = callLongMethod(mid_get_ContainingGrid, &ptr);
@@ -807,7 +811,8 @@
     return S_OK;
 }
 
-IFACEMETHODIMP GlassAccessible::get_RowSpan(int *pRetVal) {
+IFACEMETHODIMP GlassAccessible::get_RowSpan(int *pRetVal)
+{
     JNIEnv* env = GetEnv();
     if (env == NULL) return E_FAIL;
     *pRetVal = env->CallIntMethod(m_jAccessible, mid_get_RowSpan);
@@ -830,7 +835,8 @@
     return callArrayMethod(mid_GetRowHeaders, VT_UNKNOWN, pRetVal);
 }
 
-IFACEMETHODIMP GlassAccessible::get_RowOrColumnMajor(RowOrColumnMajor *pRetVal) {
+IFACEMETHODIMP GlassAccessible::get_RowOrColumnMajor(RowOrColumnMajor *pRetVal)
+{
     JNIEnv* env = GetEnv();
     if (env == NULL) return E_FAIL;
     *pRetVal = (RowOrColumnMajor) env->CallIntMethod(m_jAccessible, mid_get_RowOrColumnMajor);