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 /toolkit | |
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 'toolkit')
-rw-r--r-- | toolkit/source/controls/eventcontainer.cxx | 2 | ||||
-rw-r--r-- | toolkit/source/controls/unocontrols.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/toolkit/source/controls/eventcontainer.cxx b/toolkit/source/controls/eventcontainer.cxx index f90e18c52e0b..d00befb2f685 100644 --- a/toolkit/source/controls/eventcontainer.cxx +++ b/toolkit/source/controls/eventcontainer.cxx @@ -187,7 +187,7 @@ void NameContainer_Impl::removeContainerListener( const ::com::sun::star::uno::R // Ctor -ScriptEventContainer::ScriptEventContainer( void ) +ScriptEventContainer::ScriptEventContainer() : NameContainer_Impl( cppu::UnoType<ScriptEventDescriptor>::get()) { } diff --git a/toolkit/source/controls/unocontrols.cxx b/toolkit/source/controls/unocontrols.cxx index 820322d986e8..bf62b7ca69fb 100644 --- a/toolkit/source/controls/unocontrols.cxx +++ b/toolkit/source/controls/unocontrols.cxx @@ -398,7 +398,7 @@ OUString UnoEditControl::getText() throw(uno::RuntimeException, std::exception) return aText; } -OUString UnoEditControl::getSelectedText( void ) throw(uno::RuntimeException, std::exception) +OUString UnoEditControl::getSelectedText() throw(uno::RuntimeException, std::exception) { OUString sSelected; uno::Reference< awt::XTextComponent > xText( getPeer(), uno::UNO_QUERY ); @@ -415,7 +415,7 @@ void UnoEditControl::setSelection( const awt::Selection& aSelection ) throw(uno: xText->setSelection( aSelection ); } -awt::Selection UnoEditControl::getSelection( void ) throw(uno::RuntimeException, std::exception) +awt::Selection UnoEditControl::getSelection() throw(uno::RuntimeException, std::exception) { awt::Selection aSel; uno::Reference< awt::XTextComponent > xText( getPeer(), uno::UNO_QUERY ); @@ -424,7 +424,7 @@ awt::Selection UnoEditControl::getSelection( void ) throw(uno::RuntimeException, return aSel; } -sal_Bool UnoEditControl::isEditable( void ) throw(uno::RuntimeException, std::exception) +sal_Bool UnoEditControl::isEditable() throw(uno::RuntimeException, std::exception) { return !ImplGetPropertyValue_BOOL( BASEPROPERTY_READONLY ); } |