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 /include/basegfx | |
parent | fix crash on export of fdo60365-2.ods to xlsx (diff) | |
download | core-71b809959bb8f775d83dc52628448bb8b8322b28.tar.gz core-71b809959bb8f775d83dc52628448bb8b8322b28.zip |
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 'include/basegfx')
-rw-r--r-- | include/basegfx/vector/b3dvector.hxx | 8 | ||||
-rw-r--r-- | include/basegfx/vector/b3ivector.hxx | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/include/basegfx/vector/b3dvector.hxx b/include/basegfx/vector/b3dvector.hxx index d7e5229b130b..cef199fc8913 100644 --- a/include/basegfx/vector/b3dvector.hxx +++ b/include/basegfx/vector/b3dvector.hxx @@ -121,7 +121,7 @@ namespace basegfx @return The Length of the 3D Vector */ - double getLength(void) const + double getLength() const { double fLen(scalar(*this)); if((0.0 == fLen) || (1.0 == fLen)) @@ -133,7 +133,7 @@ namespace basegfx @return The XY-Plane Length of the 3D Vector */ - double getXYLength(void) const + double getXYLength() const { double fLen((mfX * mfX) + (mfY * mfY)); if((0.0 == fLen) || (1.0 == fLen)) @@ -145,7 +145,7 @@ namespace basegfx @return The XZ-Plane Length of the 3D Vector */ - double getXZLength(void) const + double getXZLength() const { double fLen((mfX * mfX) + (mfZ * mfZ)); // #i73040# if((0.0 == fLen) || (1.0 == fLen)) @@ -157,7 +157,7 @@ namespace basegfx @return The YZ-Plane Length of the 3D Vector */ - double getYZLength(void) const + double getYZLength() const { double fLen((mfY * mfY) + (mfZ * mfZ)); if((0.0 == fLen) || (1.0 == fLen)) diff --git a/include/basegfx/vector/b3ivector.hxx b/include/basegfx/vector/b3ivector.hxx index 0e4700c21451..cbc1db790189 100644 --- a/include/basegfx/vector/b3ivector.hxx +++ b/include/basegfx/vector/b3ivector.hxx @@ -119,7 +119,7 @@ namespace basegfx @return The Length of the 3D Vector */ - double getLength(void) const + double getLength() const { double fLen(scalar(*this)); if((0 == fLen) || (1.0 == fLen)) @@ -131,7 +131,7 @@ namespace basegfx @return The XY-Plane Length of the 3D Vector */ - double getXYLength(void) const + double getXYLength() const { double fLen((mnX * mnX) + (mnY * mnY)); if((0 == fLen) || (1.0 == fLen)) @@ -143,7 +143,7 @@ namespace basegfx @return The XZ-Plane Length of the 3D Vector */ - double getXZLength(void) const + double getXZLength() const { double fLen((mnX * mnZ) + (mnY * mnZ)); if((0 == fLen) || (1.0 == fLen)) @@ -155,7 +155,7 @@ namespace basegfx @return The YZ-Plane Length of the 3D Vector */ - double getYZLength(void) const + double getYZLength() const { double fLen((mnY * mnY) + (mnZ * mnZ)); if((0 == fLen) || (1.0 == fLen)) |