diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-14 12:44:47 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-15 11:47:12 +0200 |
commit | 71b809959bb8f775d83dc52628448bb8b8322b28 (patch) | |
tree | f9aa4308050eb7d55611068602c0cf0e3c1b3690 /accessibility/source | |
parent | 135907f2061550624ee1859745d94eee01849070 (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 'accessibility/source')
13 files changed, 44 insertions, 44 deletions
diff --git a/accessibility/source/extended/accessibleiconchoicectrl.cxx b/accessibility/source/extended/accessibleiconchoicectrl.cxx index 2048021fe771..5ed05d9c27e1 100644 --- a/accessibility/source/extended/accessibleiconchoicectrl.cxx +++ b/accessibility/source/extended/accessibleiconchoicectrl.cxx @@ -145,7 +145,7 @@ namespace accessibility // XServiceInfo - static methods - Sequence< OUString > AccessibleIconChoiceCtrl::getSupportedServiceNames_Static(void) throw (RuntimeException) + Sequence< OUString > AccessibleIconChoiceCtrl::getSupportedServiceNames_Static() throw (RuntimeException) { Sequence< OUString > aSupported(3); aSupported[0] = "com.sun.star.accessibility.AccessibleContext"; @@ -154,7 +154,7 @@ namespace accessibility return aSupported; } - OUString AccessibleIconChoiceCtrl::getImplementationName_Static(void) throw (RuntimeException) + OUString AccessibleIconChoiceCtrl::getImplementationName_Static() throw (RuntimeException) { return OUString( "com.sun.star.comp.svtools.AccessibleIconChoiceControl" ); } diff --git a/accessibility/source/extended/accessibleiconchoicectrlentry.cxx b/accessibility/source/extended/accessibleiconchoicectrlentry.cxx index a24d05bc9135..8a5e6efef8ba 100644 --- a/accessibility/source/extended/accessibleiconchoicectrlentry.cxx +++ b/accessibility/source/extended/accessibleiconchoicectrlentry.cxx @@ -247,7 +247,7 @@ throw(RuntimeException, std::exception) // XServiceInfo - static methods - Sequence< OUString > AccessibleIconChoiceCtrlEntry::getSupportedServiceNames_Static(void) throw( RuntimeException ) + Sequence< OUString > AccessibleIconChoiceCtrlEntry::getSupportedServiceNames_Static() throw( RuntimeException ) { Sequence< OUString > aSupported(3); aSupported[0] = "com.sun.star.accessibility.AccessibleContext"; @@ -256,7 +256,7 @@ throw(RuntimeException, std::exception) return aSupported; } - OUString AccessibleIconChoiceCtrlEntry::getImplementationName_Static(void) throw( RuntimeException ) + OUString AccessibleIconChoiceCtrlEntry::getImplementationName_Static() throw( RuntimeException ) { return OUString( "com.sun.star.comp.svtools.AccessibleIconChoiceControlEntry" ); } diff --git a/accessibility/source/extended/accessiblelistbox.cxx b/accessibility/source/extended/accessiblelistbox.cxx index ad24412be5a2..b7af42d8ba09 100644 --- a/accessibility/source/extended/accessiblelistbox.cxx +++ b/accessibility/source/extended/accessiblelistbox.cxx @@ -340,7 +340,7 @@ namespace accessibility // XServiceInfo - static methods - Sequence< OUString > AccessibleListBox::getSupportedServiceNames_Static(void) throw( RuntimeException ) + Sequence< OUString > AccessibleListBox::getSupportedServiceNames_Static() throw( RuntimeException ) { Sequence< OUString > aSupported(3); aSupported[0] = "com.sun.star.accessibility.AccessibleContext"; @@ -349,7 +349,7 @@ namespace accessibility return aSupported; } - OUString AccessibleListBox::getImplementationName_Static(void) throw( RuntimeException ) + OUString AccessibleListBox::getImplementationName_Static() throw( RuntimeException ) { return OUString( "com.sun.star.comp.svtools.AccessibleTreeListBox" ); } diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx index a0aa0a760c21..991b165af3d7 100644 --- a/accessibility/source/extended/accessiblelistboxentry.cxx +++ b/accessibility/source/extended/accessiblelistboxentry.cxx @@ -273,7 +273,7 @@ namespace accessibility // XServiceInfo - static methods - Sequence< OUString > AccessibleListBoxEntry::getSupportedServiceNames_Static(void) throw( RuntimeException ) + Sequence< OUString > AccessibleListBoxEntry::getSupportedServiceNames_Static() throw( RuntimeException ) { Sequence< OUString > aSupported(3); aSupported[0] = "com.sun.star.accessibility.AccessibleContext"; @@ -282,7 +282,7 @@ namespace accessibility return aSupported; } - OUString AccessibleListBoxEntry::getImplementationName_Static(void) throw( RuntimeException ) + OUString AccessibleListBoxEntry::getImplementationName_Static() throw( RuntimeException ) { return OUString( "com.sun.star.comp.svtools.AccessibleTreeListBoxEntry" ); } diff --git a/accessibility/source/extended/accessibletablistboxtable.cxx b/accessibility/source/extended/accessibletablistboxtable.cxx index 085bfb437bdc..701c3bbf948a 100644 --- a/accessibility/source/extended/accessibletablistboxtable.cxx +++ b/accessibility/source/extended/accessibletablistboxtable.cxx @@ -320,7 +320,7 @@ namespace accessibility // XServiceInfo - OUString AccessibleTabListBoxTable::getImplementationName (void) throw (RuntimeException, std::exception) + OUString AccessibleTabListBoxTable::getImplementationName() throw (RuntimeException, std::exception) { return OUString( "com.sun.star.comp.svtools.AccessibleTabListBoxTable" ); } diff --git a/accessibility/source/standard/vclxaccessiblebox.cxx b/accessibility/source/standard/vclxaccessiblebox.cxx index 15e3829dc202..efc11869c612 100644 --- a/accessibility/source/standard/vclxaccessiblebox.cxx +++ b/accessibility/source/standard/vclxaccessiblebox.cxx @@ -55,7 +55,7 @@ VCLXAccessibleBox::VCLXAccessibleBox (VCLXWindow* pVCLWindow, BoxType aType, boo m_bHasTextChild = true; } -VCLXAccessibleBox::~VCLXAccessibleBox (void) +VCLXAccessibleBox::~VCLXAccessibleBox() { } @@ -271,7 +271,7 @@ Reference< XAccessibleContext > SAL_CALL VCLXAccessibleBox::getAccessibleContext //===== XAccessibleContext ================================================== -sal_Int32 SAL_CALL VCLXAccessibleBox::getAccessibleChildCount (void) +sal_Int32 SAL_CALL VCLXAccessibleBox::getAccessibleChildCount() throw (RuntimeException, std::exception) { SolarMutexGuard aSolarGuard; @@ -345,7 +345,7 @@ Reference<XAccessible> SAL_CALL VCLXAccessibleBox::getAccessibleChild (sal_Int32 return xChild; } -sal_Int16 SAL_CALL VCLXAccessibleBox::getAccessibleRole (void) throw (RuntimeException, std::exception) +sal_Int16 SAL_CALL VCLXAccessibleBox::getAccessibleRole() throw (RuntimeException, std::exception) { ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); @@ -359,7 +359,7 @@ sal_Int16 SAL_CALL VCLXAccessibleBox::getAccessibleRole (void) throw (RuntimeExc return AccessibleRole::PANEL; } -sal_Int32 SAL_CALL VCLXAccessibleBox::getAccessibleIndexInParent (void) +sal_Int32 SAL_CALL VCLXAccessibleBox::getAccessibleIndexInParent() throw (::com::sun::star::uno::RuntimeException, std::exception) { if (m_nIndexInParent != DEFAULT_INDEX_IN_PARENT) @@ -451,7 +451,7 @@ Reference< XAccessibleKeyBinding > VCLXAccessibleBox::getAccessibleActionKeyBind //===== XComponent ========================================================== -void SAL_CALL VCLXAccessibleBox::disposing (void) +void SAL_CALL VCLXAccessibleBox::disposing() { VCLXAccessibleComponent::disposing(); } diff --git a/accessibility/source/standard/vclxaccessiblecombobox.cxx b/accessibility/source/standard/vclxaccessiblecombobox.cxx index db8d0593723f..25ed8f65c279 100644 --- a/accessibility/source/standard/vclxaccessiblecombobox.cxx +++ b/accessibility/source/standard/vclxaccessiblecombobox.cxx @@ -39,14 +39,14 @@ VCLXAccessibleComboBox::VCLXAccessibleComboBox (VCLXWindow* pVCLWindow) -VCLXAccessibleComboBox::~VCLXAccessibleComboBox (void) +VCLXAccessibleComboBox::~VCLXAccessibleComboBox() { } -bool VCLXAccessibleComboBox::IsValid (void) const +bool VCLXAccessibleComboBox::IsValid() const { return static_cast<ComboBox*>(GetWindow()) != NULL; @@ -65,7 +65,7 @@ void VCLXAccessibleComboBox::ProcessWindowEvent (const VclWindowEvent& rVclWindo //===== XServiceInfo ======================================================== -OUString VCLXAccessibleComboBox::getImplementationName (void) +OUString VCLXAccessibleComboBox::getImplementationName() throw (RuntimeException, std::exception) { return OUString( "com.sun.star.comp.toolkit.AccessibleComboBox" ); @@ -74,7 +74,7 @@ OUString VCLXAccessibleComboBox::getImplementationName (void) -Sequence< OUString > VCLXAccessibleComboBox::getSupportedServiceNames (void) +Sequence< OUString > VCLXAccessibleComboBox::getSupportedServiceNames() throw (RuntimeException, std::exception) { Sequence< OUString > aNames = VCLXAccessibleBox::getSupportedServiceNames(); diff --git a/accessibility/source/standard/vclxaccessibledropdowncombobox.cxx b/accessibility/source/standard/vclxaccessibledropdowncombobox.cxx index f9557ef04da2..9659e5e4afcd 100644 --- a/accessibility/source/standard/vclxaccessibledropdowncombobox.cxx +++ b/accessibility/source/standard/vclxaccessibledropdowncombobox.cxx @@ -53,13 +53,13 @@ VCLXAccessibleDropDownComboBox::VCLXAccessibleDropDownComboBox (VCLXWindow* pVCL -VCLXAccessibleDropDownComboBox::~VCLXAccessibleDropDownComboBox (void) +VCLXAccessibleDropDownComboBox::~VCLXAccessibleDropDownComboBox() { } -bool VCLXAccessibleDropDownComboBox::IsValid (void) const +bool VCLXAccessibleDropDownComboBox::IsValid() const { return static_cast<ComboBox*>(GetWindow()) != NULL; @@ -97,7 +97,7 @@ OUString VCLXAccessibleDropDownComboBox::getImplementationName() -Sequence< OUString > VCLXAccessibleDropDownComboBox::getSupportedServiceNames (void) +Sequence< OUString > VCLXAccessibleDropDownComboBox::getSupportedServiceNames() throw (RuntimeException, std::exception) { Sequence< OUString > aNames = VCLXAccessibleBox::getSupportedServiceNames(); diff --git a/accessibility/source/standard/vclxaccessibledropdownlistbox.cxx b/accessibility/source/standard/vclxaccessibledropdownlistbox.cxx index bfff68edb824..23e44f0b2bbd 100644 --- a/accessibility/source/standard/vclxaccessibledropdownlistbox.cxx +++ b/accessibility/source/standard/vclxaccessibledropdownlistbox.cxx @@ -59,7 +59,7 @@ VCLXAccessibleDropDownListBox::~VCLXAccessibleDropDownListBox() -bool VCLXAccessibleDropDownListBox::IsValid (void) const +bool VCLXAccessibleDropDownListBox::IsValid() const { return static_cast<ListBox*>(GetWindow()) != NULL; @@ -87,7 +87,7 @@ OUString VCLXAccessibleDropDownListBox::getImplementationName() -Sequence< OUString > VCLXAccessibleDropDownListBox::getSupportedServiceNames (void) +Sequence< OUString > VCLXAccessibleDropDownListBox::getSupportedServiceNames() throw (RuntimeException, std::exception) { Sequence< OUString > aNames = VCLXAccessibleBox::getSupportedServiceNames(); diff --git a/accessibility/source/standard/vclxaccessiblelist.cxx b/accessibility/source/standard/vclxaccessiblelist.cxx index 7fc060ba89e2..cb70d1a3711d 100644 --- a/accessibility/source/standard/vclxaccessiblelist.cxx +++ b/accessibility/source/standard/vclxaccessiblelist.cxx @@ -96,7 +96,7 @@ VCLXAccessibleList::VCLXAccessibleList (VCLXWindow* pVCLWindow, BoxType aBoxType } -VCLXAccessibleList::~VCLXAccessibleList (void) +VCLXAccessibleList::~VCLXAccessibleList() { delete m_pListBoxHelper; } @@ -108,7 +108,7 @@ void VCLXAccessibleList::SetIndexInParent (sal_Int32 nIndex) } -void SAL_CALL VCLXAccessibleList::disposing (void) +void SAL_CALL VCLXAccessibleList::disposing() { VCLXAccessibleComponent::disposing(); @@ -561,7 +561,7 @@ IMPLEMENT_FORWARD_XTYPEPROVIDER2(VCLXAccessibleList, VCLXAccessibleComponent, VC //===== XAccessible ========================================================= Reference<XAccessibleContext> SAL_CALL - VCLXAccessibleList::getAccessibleContext (void) + VCLXAccessibleList::getAccessibleContext() throw (RuntimeException, std::exception) { return this; @@ -570,7 +570,7 @@ Reference<XAccessibleContext> SAL_CALL //===== XAccessibleContext ================================================== -sal_Int32 SAL_CALL VCLXAccessibleList::getAccessibleChildCount (void) +sal_Int32 SAL_CALL VCLXAccessibleList::getAccessibleChildCount() throw (RuntimeException, std::exception) { SolarMutexGuard aSolarGuard; @@ -614,7 +614,7 @@ Reference< XAccessible > SAL_CALL VCLXAccessibleList::getAccessibleParent( ) return m_xParent; } -sal_Int32 SAL_CALL VCLXAccessibleList::getAccessibleIndexInParent (void) +sal_Int32 SAL_CALL VCLXAccessibleList::getAccessibleIndexInParent() throw (::com::sun::star::uno::RuntimeException, std::exception) { if (m_nIndexInParent != DEFAULT_INDEX_IN_PARENT) @@ -623,20 +623,20 @@ sal_Int32 SAL_CALL VCLXAccessibleList::getAccessibleIndexInParent (void) return VCLXAccessibleComponent::getAccessibleIndexInParent(); } -sal_Int16 SAL_CALL VCLXAccessibleList::getAccessibleRole (void) +sal_Int16 SAL_CALL VCLXAccessibleList::getAccessibleRole() throw (RuntimeException, std::exception) { return AccessibleRole::LIST; } //===== XServiceInfo ========================================================== -OUString VCLXAccessibleList::getImplementationName (void) +OUString VCLXAccessibleList::getImplementationName() throw (RuntimeException, std::exception) { return OUString( "com.sun.star.comp.toolkit.AccessibleList" ); } -Sequence< OUString > VCLXAccessibleList::getSupportedServiceNames (void) +Sequence< OUString > VCLXAccessibleList::getSupportedServiceNames() throw (RuntimeException, std::exception) { Sequence< OUString > aNames = VCLXAccessibleComponent::getSupportedServiceNames(); diff --git a/accessibility/source/standard/vclxaccessiblelistbox.cxx b/accessibility/source/standard/vclxaccessiblelistbox.cxx index 701e0ba3d895..3fb9b1be3081 100644 --- a/accessibility/source/standard/vclxaccessiblelistbox.cxx +++ b/accessibility/source/standard/vclxaccessiblelistbox.cxx @@ -50,14 +50,14 @@ VCLXAccessibleListBox::VCLXAccessibleListBox (VCLXWindow* pVCLWindow) -VCLXAccessibleListBox::~VCLXAccessibleListBox (void) +VCLXAccessibleListBox::~VCLXAccessibleListBox() { } -bool VCLXAccessibleListBox::IsValid (void) const +bool VCLXAccessibleListBox::IsValid() const { return static_cast<ListBox*>(GetWindow()) != NULL; @@ -76,7 +76,7 @@ void VCLXAccessibleListBox::ProcessWindowEvent (const VclWindowEvent& rVclWindow //===== XServiceInfo ======================================================== -OUString VCLXAccessibleListBox::getImplementationName (void) +OUString VCLXAccessibleListBox::getImplementationName() throw (RuntimeException, std::exception) { return OUString( "com.sun.star.comp.toolkit.AccessibleListBox" ); @@ -85,7 +85,7 @@ OUString VCLXAccessibleListBox::getImplementationName (void) -Sequence< OUString > VCLXAccessibleListBox::getSupportedServiceNames (void) +Sequence< OUString > VCLXAccessibleListBox::getSupportedServiceNames() throw (RuntimeException, std::exception) { Sequence< OUString > aNames = VCLXAccessibleBox::getSupportedServiceNames(); diff --git a/accessibility/source/standard/vclxaccessiblelistitem.cxx b/accessibility/source/standard/vclxaccessiblelistitem.cxx index 7e934e205bd7..c9c1b16eb6d8 100644 --- a/accessibility/source/standard/vclxaccessiblelistitem.cxx +++ b/accessibility/source/standard/vclxaccessiblelistitem.cxx @@ -629,7 +629,7 @@ void SAL_CALL VCLXAccessibleListItem::removeAccessibleEventListener( const Refer // AF (Oct. 29 2002): Return black as constant foreground color. This is an // initial implementation and has to be substituted by code that determines // the color that is actually used. -sal_Int32 SAL_CALL VCLXAccessibleListItem::getForeground (void) +sal_Int32 SAL_CALL VCLXAccessibleListItem::getForeground() throw (::com::sun::star::uno::RuntimeException, std::exception) { return COL_BLACK; @@ -638,7 +638,7 @@ sal_Int32 SAL_CALL VCLXAccessibleListItem::getForeground (void) // AF (Oct. 29 2002): Return white as constant background color. This is an // initial implementation and has to be substituted by code that determines // the color that is actually used. -sal_Int32 SAL_CALL VCLXAccessibleListItem::getBackground (void) +sal_Int32 SAL_CALL VCLXAccessibleListItem::getBackground() throw (::com::sun::star::uno::RuntimeException, std::exception) { return COL_WHITE; diff --git a/accessibility/source/standard/vclxaccessibletextfield.cxx b/accessibility/source/standard/vclxaccessibletextfield.cxx index 3219be877f37..82e27f87eb60 100644 --- a/accessibility/source/standard/vclxaccessibletextfield.cxx +++ b/accessibility/source/standard/vclxaccessibletextfield.cxx @@ -49,14 +49,14 @@ VCLXAccessibleTextField::VCLXAccessibleTextField (VCLXWindow* pVCLWindow, const -VCLXAccessibleTextField::~VCLXAccessibleTextField (void) +VCLXAccessibleTextField::~VCLXAccessibleTextField() { } -OUString VCLXAccessibleTextField::implGetText (void) +OUString VCLXAccessibleTextField::implGetText() { OUString aText; ListBox* pListBox = static_cast<ListBox*>(GetWindow()); @@ -76,7 +76,7 @@ IMPLEMENT_FORWARD_XTYPEPROVIDER2(VCLXAccessibleTextField, VCLXAccessibleTextComp //===== XAccessible ========================================================= Reference<XAccessibleContext> SAL_CALL - VCLXAccessibleTextField::getAccessibleContext (void) + VCLXAccessibleTextField::getAccessibleContext() throw (RuntimeException, std::exception) { return this; @@ -85,7 +85,7 @@ Reference<XAccessibleContext> SAL_CALL //===== XAccessibleContext ================================================== -sal_Int32 SAL_CALL VCLXAccessibleTextField::getAccessibleChildCount (void) +sal_Int32 SAL_CALL VCLXAccessibleTextField::getAccessibleChildCount() throw (RuntimeException, std::exception) { return 0; @@ -103,7 +103,7 @@ Reference<XAccessible> SAL_CALL VCLXAccessibleTextField::getAccessibleChild (sal -sal_Int16 SAL_CALL VCLXAccessibleTextField::getAccessibleRole (void) +sal_Int16 SAL_CALL VCLXAccessibleTextField::getAccessibleRole() throw (RuntimeException, std::exception) { ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); @@ -123,7 +123,7 @@ Reference< XAccessible > SAL_CALL VCLXAccessibleTextField::getAccessibleParent( //===== XServiceInfo ========================================================== -OUString VCLXAccessibleTextField::getImplementationName (void) +OUString VCLXAccessibleTextField::getImplementationName() throw (RuntimeException, std::exception) { return OUString( "com.sun.star.comp.toolkit.AccessibleTextField" ); @@ -132,7 +132,7 @@ OUString VCLXAccessibleTextField::getImplementationName (void) -Sequence< OUString > VCLXAccessibleTextField::getSupportedServiceNames (void) +Sequence< OUString > VCLXAccessibleTextField::getSupportedServiceNames() throw (RuntimeException, std::exception) { Sequence< OUString > aNames = VCLXAccessibleTextComponent::getSupportedServiceNames(); |