summaryrefslogtreecommitdiff
path: root/starmath/source
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 /starmath/source
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 'starmath/source')
-rw-r--r--starmath/source/mathmlimport.cxx4
-rw-r--r--starmath/source/mathmlimport.hxx2
-rw-r--r--starmath/source/unomodel.cxx4
3 files changed, 5 insertions, 5 deletions
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",