summaryrefslogtreecommitdiff
path: root/editeng/source/accessibility
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-14 12:44:47 +0200
committerNoel Grandin <noel@peralex.com>2015-04-15 11:47:12 +0200
commit71b809959bb8f775d83dc52628448bb8b8322b28 (patch)
treef9aa4308050eb7d55611068602c0cf0e3c1b3690 /editeng/source/accessibility
parent135907f2061550624ee1859745d94eee01849070 (diff)
remove unnecessary use of void in function declarations
ie. void f(void); becomes void f(); I used the following command to make the changes: git grep -lP '\(\s*void\s*\)' -- *.cxx \ | xargs perl -pi -w -e 's/(\w+)\s*\(\s*void\s*\)/$1\(\)/g;' and ran it for both .cxx and .hxx files. Change-Id: I314a1b56e9c14d10726e32841736b0ad5eef8ddd
Diffstat (limited to 'editeng/source/accessibility')
-rw-r--r--editeng/source/accessibility/AccessibleComponentBase.cxx26
-rw-r--r--editeng/source/accessibility/AccessibleContextBase.cxx40
-rw-r--r--editeng/source/accessibility/AccessibleEditableTextPara.cxx6
-rw-r--r--editeng/source/accessibility/AccessibleImageBullet.cxx4
4 files changed, 38 insertions, 38 deletions
diff --git a/editeng/source/accessibility/AccessibleComponentBase.cxx b/editeng/source/accessibility/AccessibleComponentBase.cxx
index 38ad66f09117..c2b2ddfd50c5 100644
--- a/editeng/source/accessibility/AccessibleComponentBase.cxx
+++ b/editeng/source/accessibility/AccessibleComponentBase.cxx
@@ -36,14 +36,14 @@ namespace accessibility {
//===== internal ============================================================
-AccessibleComponentBase::AccessibleComponentBase (void)
+AccessibleComponentBase::AccessibleComponentBase()
{
}
-AccessibleComponentBase::~AccessibleComponentBase (void)
+AccessibleComponentBase::~AccessibleComponentBase()
{
}
@@ -77,7 +77,7 @@ uno::Reference<XAccessible > SAL_CALL
-awt::Rectangle SAL_CALL AccessibleComponentBase::getBounds (void)
+awt::Rectangle SAL_CALL AccessibleComponentBase::getBounds()
throw (uno::RuntimeException, std::exception)
{
return awt::Rectangle();
@@ -86,7 +86,7 @@ awt::Rectangle SAL_CALL AccessibleComponentBase::getBounds (void)
-awt::Point SAL_CALL AccessibleComponentBase::getLocation (void)
+awt::Point SAL_CALL AccessibleComponentBase::getLocation()
throw (::com::sun::star::uno::RuntimeException, std::exception)
{
awt::Rectangle aBBox (getBounds());
@@ -96,7 +96,7 @@ awt::Point SAL_CALL AccessibleComponentBase::getLocation (void)
-awt::Point SAL_CALL AccessibleComponentBase::getLocationOnScreen (void)
+awt::Point SAL_CALL AccessibleComponentBase::getLocationOnScreen()
throw (::com::sun::star::uno::RuntimeException, std::exception)
{
return awt::Point();
@@ -105,7 +105,7 @@ awt::Point SAL_CALL AccessibleComponentBase::getLocationOnScreen (void)
-::com::sun::star::awt::Size SAL_CALL AccessibleComponentBase::getSize (void)
+::com::sun::star::awt::Size SAL_CALL AccessibleComponentBase::getSize()
throw (::com::sun::star::uno::RuntimeException, std::exception)
{
awt::Rectangle aBBox (getBounds());
@@ -136,7 +136,7 @@ void SAL_CALL AccessibleComponentBase::removeFocusListener (const ::com::sun::st
-void SAL_CALL AccessibleComponentBase::grabFocus (void)
+void SAL_CALL AccessibleComponentBase::grabFocus()
throw (::com::sun::star::uno::RuntimeException, std::exception)
{
uno::Reference<XAccessibleContext> xContext (this, uno::UNO_QUERY);
@@ -153,7 +153,7 @@ void SAL_CALL AccessibleComponentBase::grabFocus (void)
-sal_Int32 SAL_CALL AccessibleComponentBase::getForeground (void)
+sal_Int32 SAL_CALL AccessibleComponentBase::getForeground()
throw (::com::sun::star::uno::RuntimeException, std::exception)
{
return Color(COL_BLACK).GetColor();
@@ -162,7 +162,7 @@ sal_Int32 SAL_CALL AccessibleComponentBase::getForeground (void)
-sal_Int32 SAL_CALL AccessibleComponentBase::getBackground (void)
+sal_Int32 SAL_CALL AccessibleComponentBase::getBackground()
throw (::com::sun::star::uno::RuntimeException, std::exception)
{
return Color(COL_WHITE).GetColor();
@@ -174,7 +174,7 @@ sal_Int32 SAL_CALL AccessibleComponentBase::getBackground (void)
//===== XAccessibleExtendedComponent ========================================
::com::sun::star::uno::Reference< ::com::sun::star::awt::XFont > SAL_CALL
- AccessibleComponentBase::getFont (void)
+ AccessibleComponentBase::getFont()
throw (::com::sun::star::uno::RuntimeException, std::exception)
{
return uno::Reference<awt::XFont>();
@@ -183,14 +183,14 @@ sal_Int32 SAL_CALL AccessibleComponentBase::getBackground (void)
-OUString SAL_CALL AccessibleComponentBase::getTitledBorderText (void)
+OUString SAL_CALL AccessibleComponentBase::getTitledBorderText()
throw (::com::sun::star::uno::RuntimeException, std::exception)
{
return OUString();
}
-OUString SAL_CALL AccessibleComponentBase::getToolTipText (void)
+OUString SAL_CALL AccessibleComponentBase::getToolTipText()
throw (::com::sun::star::uno::RuntimeException, std::exception)
{
return OUString();
@@ -202,7 +202,7 @@ OUString SAL_CALL AccessibleComponentBase::getToolTipText (void)
//===== XTypeProvider ===================================================
uno::Sequence<uno::Type> SAL_CALL
- AccessibleComponentBase::getTypes (void)
+ AccessibleComponentBase::getTypes()
throw (uno::RuntimeException, std::exception)
{
// Get list of types from the context base implementation...
diff --git a/editeng/source/accessibility/AccessibleContextBase.cxx b/editeng/source/accessibility/AccessibleContextBase.cxx
index bd364892b890..377a8428a417 100644
--- a/editeng/source/accessibility/AccessibleContextBase.cxx
+++ b/editeng/source/accessibility/AccessibleContextBase.cxx
@@ -81,7 +81,7 @@ AccessibleContextBase::AccessibleContextBase (
mxRelationSet = pRelationSet;
}
-AccessibleContextBase::~AccessibleContextBase(void)
+AccessibleContextBase::~AccessibleContextBase()
{
}
@@ -188,7 +188,7 @@ void AccessibleContextBase::SetRelationSet (
//===== XAccessible =========================================================
uno::Reference< XAccessibleContext> SAL_CALL
- AccessibleContextBase::getAccessibleContext (void)
+ AccessibleContextBase::getAccessibleContext()
throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed ();
@@ -203,7 +203,7 @@ uno::Reference< XAccessibleContext> SAL_CALL
/** No children.
*/
sal_Int32 SAL_CALL
- AccessibleContextBase::getAccessibleChildCount (void)
+ AccessibleContextBase::getAccessibleChildCount()
throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed ();
@@ -230,7 +230,7 @@ uno::Reference<XAccessible> SAL_CALL
uno::Reference<XAccessible> SAL_CALL
- AccessibleContextBase::getAccessibleParent (void)
+ AccessibleContextBase::getAccessibleParent()
throw (::com::sun::star::uno::RuntimeException, std::exception)
{
ThrowIfDisposed ();
@@ -241,7 +241,7 @@ uno::Reference<XAccessible> SAL_CALL
sal_Int32 SAL_CALL
- AccessibleContextBase::getAccessibleIndexInParent (void)
+ AccessibleContextBase::getAccessibleIndexInParent()
throw (::com::sun::star::uno::RuntimeException, std::exception)
{
ThrowIfDisposed ();
@@ -277,7 +277,7 @@ sal_Int32 SAL_CALL
sal_Int16 SAL_CALL
- AccessibleContextBase::getAccessibleRole (void)
+ AccessibleContextBase::getAccessibleRole()
throw (::com::sun::star::uno::RuntimeException, std::exception)
{
ThrowIfDisposed ();
@@ -288,7 +288,7 @@ sal_Int16 SAL_CALL
OUString SAL_CALL
- AccessibleContextBase::getAccessibleDescription (void)
+ AccessibleContextBase::getAccessibleDescription()
throw (::com::sun::star::uno::RuntimeException, std::exception)
{
ThrowIfDisposed ();
@@ -300,7 +300,7 @@ OUString SAL_CALL
OUString SAL_CALL
- AccessibleContextBase::getAccessibleName (void)
+ AccessibleContextBase::getAccessibleName()
throw (::com::sun::star::uno::RuntimeException, std::exception)
{
ThrowIfDisposed ();
@@ -322,7 +322,7 @@ OUString SAL_CALL
/** Return a copy of the relation set.
*/
uno::Reference<XAccessibleRelationSet> SAL_CALL
- AccessibleContextBase::getAccessibleRelationSet (void)
+ AccessibleContextBase::getAccessibleRelationSet()
throw (::com::sun::star::uno::RuntimeException, std::exception)
{
ThrowIfDisposed ();
@@ -349,7 +349,7 @@ uno::Reference<XAccessibleRelationSet> SAL_CALL
VISIBLE
*/
uno::Reference<XAccessibleStateSet> SAL_CALL
- AccessibleContextBase::getAccessibleStateSet (void)
+ AccessibleContextBase::getAccessibleStateSet()
throw (::com::sun::star::uno::RuntimeException, std::exception)
{
::utl::AccessibleStateSetHelper* pStateSet = NULL;
@@ -389,7 +389,7 @@ uno::Reference<XAccessibleStateSet> SAL_CALL
lang::Locale SAL_CALL
- AccessibleContextBase::getLocale (void)
+ AccessibleContextBase::getLocale()
throw (IllegalAccessibleComponentStateException,
::com::sun::star::uno::RuntimeException, std::exception)
{
@@ -457,7 +457,7 @@ void SAL_CALL AccessibleContextBase::removeAccessibleEventListener (
}
//===== XServiceInfo ========================================================
-OUString SAL_CALL AccessibleContextBase::getImplementationName (void)
+OUString SAL_CALL AccessibleContextBase::getImplementationName()
throw (::com::sun::star::uno::RuntimeException, std::exception)
{
ThrowIfDisposed ();
@@ -471,7 +471,7 @@ sal_Bool SAL_CALL AccessibleContextBase::supportsService (const OUString& sServi
}
uno::Sequence< OUString > SAL_CALL
- AccessibleContextBase::getSupportedServiceNames (void)
+ AccessibleContextBase::getSupportedServiceNames()
throw (::com::sun::star::uno::RuntimeException, std::exception)
{
ThrowIfDisposed ();
@@ -488,7 +488,7 @@ uno::Sequence< OUString > SAL_CALL
//===== XTypeProvider =======================================================
uno::Sequence< ::com::sun::star::uno::Type>
- AccessibleContextBase::getTypes (void)
+ AccessibleContextBase::getTypes()
throw (::com::sun::star::uno::RuntimeException, std::exception)
{
ThrowIfDisposed ();
@@ -499,7 +499,7 @@ uno::Sequence< ::com::sun::star::uno::Type>
}
uno::Sequence<sal_Int8> SAL_CALL
- AccessibleContextBase::getImplementationId (void)
+ AccessibleContextBase::getImplementationId()
throw (::com::sun::star::uno::RuntimeException, std::exception)
{
return css::uno::Sequence<sal_Int8>();
@@ -507,7 +507,7 @@ uno::Sequence<sal_Int8> SAL_CALL
//===== internal ============================================================
-void SAL_CALL AccessibleContextBase::disposing (void)
+void SAL_CALL AccessibleContextBase::disposing()
{
SetState (AccessibleStateType::DEFUNC);
@@ -574,7 +574,7 @@ void AccessibleContextBase::SetAccessibleName (
-OUString AccessibleContextBase::CreateAccessibleDescription (void)
+OUString AccessibleContextBase::CreateAccessibleDescription()
throw (::com::sun::star::uno::RuntimeException)
{
return OUString("Empty Description");
@@ -583,7 +583,7 @@ OUString AccessibleContextBase::CreateAccessibleDescription (void)
-OUString AccessibleContextBase::CreateAccessibleName (void)
+OUString AccessibleContextBase::CreateAccessibleName()
throw (::com::sun::star::uno::RuntimeException)
{
return OUString("Empty Name");
@@ -624,7 +624,7 @@ void AccessibleContextBase::FireEvent (const AccessibleEventObject& aEvent)
-void AccessibleContextBase::ThrowIfDisposed (void)
+void AccessibleContextBase::ThrowIfDisposed()
throw (::com::sun::star::lang::DisposedException)
{
if (rBHelper.bDisposed || rBHelper.bInDispose)
@@ -637,7 +637,7 @@ void AccessibleContextBase::ThrowIfDisposed (void)
-bool AccessibleContextBase::IsDisposed (void)
+bool AccessibleContextBase::IsDisposed()
{
return (rBHelper.bDisposed || rBHelper.bInDispose);
}
diff --git a/editeng/source/accessibility/AccessibleEditableTextPara.cxx b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
index 7ed255a83dde..53ca25fdb06b 100644
--- a/editeng/source/accessibility/AccessibleEditableTextPara.cxx
+++ b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
@@ -2813,7 +2813,7 @@ namespace accessibility
// XServiceInfo
- OUString SAL_CALL AccessibleEditableTextPara::getImplementationName (void) throw (uno::RuntimeException, std::exception)
+ OUString SAL_CALL AccessibleEditableTextPara::getImplementationName() throw (uno::RuntimeException, std::exception)
{
return OUString("AccessibleEditableTextPara");
@@ -2825,7 +2825,7 @@ namespace accessibility
return cppu::supportsService(this, sServiceName);
}
- uno::Sequence< OUString> SAL_CALL AccessibleEditableTextPara::getSupportedServiceNames (void) throw (uno::RuntimeException, std::exception)
+ uno::Sequence< OUString> SAL_CALL AccessibleEditableTextPara::getSupportedServiceNames() throw (uno::RuntimeException, std::exception)
{
const OUString sServiceName( getServiceName() );
@@ -2833,7 +2833,7 @@ namespace accessibility
}
// XServiceName
- OUString SAL_CALL AccessibleEditableTextPara::getServiceName (void) throw (uno::RuntimeException)
+ OUString SAL_CALL AccessibleEditableTextPara::getServiceName() throw (uno::RuntimeException)
{
// #105185# Using correct service now
diff --git a/editeng/source/accessibility/AccessibleImageBullet.cxx b/editeng/source/accessibility/AccessibleImageBullet.cxx
index cac43b3b8b86..09b07a764f4d 100644
--- a/editeng/source/accessibility/AccessibleImageBullet.cxx
+++ b/editeng/source/accessibility/AccessibleImageBullet.cxx
@@ -357,7 +357,7 @@ namespace accessibility
return static_cast<sal_Int32>( aColor.GetColor() );
}
- OUString SAL_CALL AccessibleImageBullet::getImplementationName (void) throw (uno::RuntimeException, std::exception)
+ OUString SAL_CALL AccessibleImageBullet::getImplementationName() throw (uno::RuntimeException, std::exception)
{
return OUString("AccessibleImageBullet");
@@ -369,7 +369,7 @@ namespace accessibility
return cppu::supportsService(this, sServiceName);
}
- uno::Sequence< OUString > SAL_CALL AccessibleImageBullet::getSupportedServiceNames (void) throw (uno::RuntimeException, std::exception)
+ uno::Sequence< OUString > SAL_CALL AccessibleImageBullet::getSupportedServiceNames() throw (uno::RuntimeException, std::exception)
{
const OUString sServiceName ("com.sun.star.accessibility.AccessibleContext");