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 /lotuswordpro/source/filter/lwplayout.cxx | |
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 'lotuswordpro/source/filter/lwplayout.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwplayout.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lotuswordpro/source/filter/lwplayout.cxx b/lotuswordpro/source/filter/lwplayout.cxx index 69ad38e423d9..14036a2717c3 100644 --- a/lotuswordpro/source/filter/lwplayout.cxx +++ b/lotuswordpro/source/filter/lwplayout.cxx @@ -939,7 +939,7 @@ LwpTabOverride* LwpMiddleLayout::GetTabOverride() * @param: * @return: */ -sal_uInt16 LwpMiddleLayout::GetScaleMode(void) +sal_uInt16 LwpMiddleLayout::GetScaleMode() { if ((m_nOverrideFlag & OVER_SCALING) && m_LayScale.obj().is()) return GetLayoutScale()->GetScaleMode(); @@ -949,7 +949,7 @@ sal_uInt16 LwpMiddleLayout::GetScaleMode(void) return (LwpLayoutScale::FIT_IN_FRAME | LwpLayoutScale::MAINTAIN_ASPECT_RATIO); } -sal_uInt16 LwpMiddleLayout::GetScaleTile(void) +sal_uInt16 LwpMiddleLayout::GetScaleTile() { if ((m_nOverrideFlag & OVER_SCALING) && m_LayScale.obj().is()) return (GetLayoutScale()->GetPlacement() & LwpLayoutScale::TILED) @@ -960,7 +960,7 @@ sal_uInt16 LwpMiddleLayout::GetScaleTile(void) return 0; } -sal_uInt16 LwpMiddleLayout::GetScaleCenter(void) +sal_uInt16 LwpMiddleLayout::GetScaleCenter() { if ((m_nOverrideFlag & OVER_SCALING) && m_LayScale.obj().is()) return (GetLayoutScale()->GetPlacement() & LwpLayoutScale::CENTERED) @@ -971,7 +971,7 @@ sal_uInt16 LwpMiddleLayout::GetScaleCenter(void) return 0; } -sal_uInt32 LwpMiddleLayout::GetScalePercentage(void) +sal_uInt32 LwpMiddleLayout::GetScalePercentage() { if ((m_nOverrideFlag & OVER_SCALING) && m_LayScale.obj().is()) return GetLayoutScale()->GetScalePercentage()/10;//m_nScalePercentage 1000 = 100% @@ -981,7 +981,7 @@ sal_uInt32 LwpMiddleLayout::GetScalePercentage(void) return 100; } -double LwpMiddleLayout::GetScaleWidth(void) +double LwpMiddleLayout::GetScaleWidth() { if ((m_nOverrideFlag & OVER_SCALING) && m_LayScale.obj().is()) return LwpTools::ConvertFromUnits(GetLayoutScale()->GetScaleWidth()); @@ -991,7 +991,7 @@ double LwpMiddleLayout::GetScaleWidth(void) return 0; } -double LwpMiddleLayout::GetScaleHeight(void) +double LwpMiddleLayout::GetScaleHeight() { if ((m_nOverrideFlag & OVER_SCALING) && m_LayScale.obj().is()) return LwpTools::ConvertFromUnits(GetLayoutScale()->GetScaleHeight()); @@ -1000,7 +1000,7 @@ double LwpMiddleLayout::GetScaleHeight(void) else return 0; } -bool LwpMiddleLayout::CanSizeRight(void) +bool LwpMiddleLayout::CanSizeRight() { sal_uInt8 RelType = GetRelativeType(); @@ -1040,7 +1040,7 @@ sal_Int32 LwpMiddleLayout::DetermineWidth() } return 0; } -bool LwpMiddleLayout::IsSizeRightToContainer(void) +bool LwpMiddleLayout::IsSizeRightToContainer() { if (!CanSizeRight()) return false; @@ -1059,7 +1059,7 @@ bool LwpMiddleLayout::IsSizeRightToContainer(void) else return false; } -bool LwpMiddleLayout::IsSizeRightToContent(void) +bool LwpMiddleLayout::IsSizeRightToContent() { if (!CanSizeRight()) return false; |