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 /starmath | |
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 'starmath')
-rw-r--r-- | starmath/inc/unomodel.hxx | 4 | ||||
-rw-r--r-- | starmath/source/mathmlimport.cxx | 4 | ||||
-rw-r--r-- | starmath/source/mathmlimport.hxx | 2 | ||||
-rw-r--r-- | starmath/source/unomodel.cxx | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/starmath/inc/unomodel.hxx b/starmath/inc/unomodel.hxx index b6a1db01318a..7e4223ffeb8e 100644 --- a/starmath/inc/unomodel.hxx +++ b/starmath/inc/unomodel.hxx @@ -84,9 +84,9 @@ public: virtual void SAL_CALL render( sal_Int32 nRenderer, const ::com::sun::star::uno::Any& rSelection, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rxOptions ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; //XServiceInfo - virtual OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; + virtual OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; - virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual void SAL_CALL setParent( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xParent ) throw( ::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx index 71df78c4cccf..d60f4d0e8f5b 100644 --- a/starmath/source/mathmlimport.cxx +++ b/starmath/source/mathmlimport.cxx @@ -493,7 +493,7 @@ throw(uno::RuntimeException, std::exception) return SvXMLImport::getSomething( rId ); } -void SmXMLImport::endDocument(void) +void SmXMLImport::endDocument() throw(xml::sax::SAXException, uno::RuntimeException, std::exception) { //Set the resulted tree into the SmDocShell where it belongs @@ -1666,7 +1666,7 @@ public: }; -void SmXMLNoneContext_Impl::EndElement(void) +void SmXMLNoneContext_Impl::EndElement() { SmToken aToken; aToken.cMathChar = '\0'; diff --git a/starmath/source/mathmlimport.hxx b/starmath/source/mathmlimport.hxx index 3703f699ae29..88571fcc9755 100644 --- a/starmath/source/mathmlimport.hxx +++ b/starmath/source/mathmlimport.hxx @@ -96,7 +96,7 @@ public: sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rId ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw(); - void SAL_CALL endDocument(void) + void SAL_CALL endDocument() throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx index 597afed3fb3e..fe337b41ff54 100644 --- a/starmath/source/unomodel.cxx +++ b/starmath/source/unomodel.cxx @@ -400,7 +400,7 @@ static sal_Int16 lcl_AnyToINT16(const uno::Any& rAny) return nRet; } -OUString SmModel::getImplementationName(void) throw( uno::RuntimeException, std::exception ) +OUString SmModel::getImplementationName() throw( uno::RuntimeException, std::exception ) { return OUString("com.sun.star.comp.Math.FormulaDocument"); } @@ -410,7 +410,7 @@ sal_Bool SmModel::supportsService(const OUString& rServiceName) throw( uno::Runt return cppu::supportsService(this, rServiceName); } -uno::Sequence< OUString > SmModel::getSupportedServiceNames(void) throw( uno::RuntimeException, std::exception ) +uno::Sequence< OUString > SmModel::getSupportedServiceNames() throw( uno::RuntimeException, std::exception ) { return uno::Sequence<OUString>{ "com.sun.star.document.OfficeDocument", |