summaryrefslogtreecommitdiff
path: root/winaccessibility/source/UAccCOM/AccComponentBase.cxx
diff options
context:
space:
mode:
authorPhilipp Hofer <philipp.hofer@protonmail.com>2020-11-12 13:27:36 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2020-11-18 12:29:18 +0100
commit65717f77c43ca7cbf91e4c158d643a02a181e439 (patch)
treefde79d472210f884b905f6a5187c700eca615c60 /winaccessibility/source/UAccCOM/AccComponentBase.cxx
parentb9e9ac51a731a1b9515d935fd543218b2ee107c1 (diff)
tdf#123936 Formatting files in module winaccessibility with clang-format
Change-Id: I9d5b9697cb241b306d0614fb563feb5594c19887 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105729 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'winaccessibility/source/UAccCOM/AccComponentBase.cxx')
-rw-r--r--winaccessibility/source/UAccCOM/AccComponentBase.cxx42
1 files changed, 18 insertions, 24 deletions
diff --git a/winaccessibility/source/UAccCOM/AccComponentBase.cxx b/winaccessibility/source/UAccCOM/AccComponentBase.cxx
index ad3b06f79668..7d173dd0064a 100644
--- a/winaccessibility/source/UAccCOM/AccComponentBase.cxx
+++ b/winaccessibility/source/UAccCOM/AccComponentBase.cxx
@@ -27,16 +27,11 @@
using namespace com::sun::star::accessibility;
using namespace com::sun::star::uno;
-
// Construction/Destruction
+CAccComponentBase::CAccComponentBase() {}
-CAccComponentBase::CAccComponentBase()
-{}
-
-CAccComponentBase::~CAccComponentBase()
-{}
-
+CAccComponentBase::~CAccComponentBase() {}
/**
* Returns the location of the upper left corner of the object's bounding
@@ -44,7 +39,7 @@ CAccComponentBase::~CAccComponentBase()
*
* @param Location the upper left corner of the object's bounding box.
*/
-COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_locationInParent(long *x, long *y)
+COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_locationInParent(long* x, long* y)
{
SolarMutexGuard g;
@@ -53,7 +48,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_locationInParent(long *
if (x == nullptr || y == nullptr)
return E_INVALIDARG;
// #CHECK XInterface#
- if(!pRXComp.is())
+ if (!pRXComp.is())
return E_FAIL;
const css::awt::Point& pt = GetXInterface()->getLocation();
@@ -61,7 +56,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_locationInParent(long *
*y = pt.Y;
return S_OK;
}
- catch(...)
+ catch (...)
{
return E_FAIL;
}
@@ -74,7 +69,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_locationInParent(long *
* @param Location the upper left corner of the object's bounding
* box in screen coordinates.
*/
-COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_locationOnScreen(long *x, long *y)
+COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_locationOnScreen(long* x, long* y)
{
SolarMutexGuard g;
@@ -83,16 +78,15 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_locationOnScreen(long *
if (x == nullptr || y == nullptr)
return E_INVALIDARG;
// #CHECK XInterface#
- if(!pRXComp.is())
+ if (!pRXComp.is())
return E_FAIL;
const css::awt::Point& pt = GetXInterface()->getLocationOnScreen();
*x = pt.X;
*y = pt.Y;
return S_OK;
-
}
- catch(...)
+ catch (...)
{
return E_FAIL;
}
@@ -103,7 +97,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_locationOnScreen(long *
*
* @param success the boolean result to be returned.
*/
-COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::grabFocus(boolean * success)
+COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::grabFocus(boolean* success)
{
SolarMutexGuard g;
@@ -112,7 +106,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::grabFocus(boolean * success
if (success == nullptr)
return E_INVALIDARG;
// #CHECK XInterface#
- if(!pRXComp.is())
+ if (!pRXComp.is())
{
return E_FAIL;
}
@@ -129,7 +123,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::grabFocus(boolean * success
*
* @param Color the color of foreground.
*/
-COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_foreground(IA2Color * foreground)
+COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_foreground(IA2Color* foreground)
{
SolarMutexGuard g;
@@ -138,7 +132,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_foreground(IA2Color * f
if (foreground == nullptr)
return E_INVALIDARG;
// #CHECK XInterface#
- if(!pRXComp.is())
+ if (!pRXComp.is())
{
return E_FAIL;
}
@@ -154,7 +148,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_foreground(IA2Color * f
*
* @param Color the color of background.
*/
-COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_background(IA2Color * background)
+COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_background(IA2Color* background)
{
SolarMutexGuard g;
@@ -163,7 +157,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_background(IA2Color * b
if (background == nullptr)
return E_INVALIDARG;
// #CHECK XInterface#
- if(!pRXComp.is())
+ if (!pRXComp.is())
{
return E_FAIL;
}
@@ -187,15 +181,15 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::put_XInterface(hyper pXInte
CUNOXWrapper::put_XInterface(pXInterface);
//special query.
- if(pUNOInterface == nullptr)
+ if (pUNOInterface == nullptr)
return E_FAIL;
Reference<XAccessibleContext> pRContext = pUNOInterface->getAccessibleContext();
- if( !pRContext.is() )
+ if (!pRContext.is())
{
return E_FAIL;
}
- Reference<XAccessibleComponent> pRXI(pRContext,UNO_QUERY);
- if( !pRXI.is() )
+ Reference<XAccessibleComponent> pRXI(pRContext, UNO_QUERY);
+ if (!pRXI.is())
pRXComp = nullptr;
else
pRXComp = pRXI.get();