From 71b809959bb8f775d83dc52628448bb8b8322b28 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 14 Apr 2015 12:44:47 +0200 Subject: 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 --- svx/source/sidebar/tools/Popup.cxx | 10 +++++----- svx/source/sidebar/tools/PopupContainer.cxx | 2 +- svx/source/sidebar/tools/PopupControl.cxx | 2 +- svx/source/sidebar/tools/ValueSetWithTextControl.cxx | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'svx/source/sidebar/tools') diff --git a/svx/source/sidebar/tools/Popup.cxx b/svx/source/sidebar/tools/Popup.cxx index 18109ec39f9d..8647fb398b16 100644 --- a/svx/source/sidebar/tools/Popup.cxx +++ b/svx/source/sidebar/tools/Popup.cxx @@ -40,7 +40,7 @@ Popup::Popup ( OSL_ASSERT(maControlCreator); } -Popup::~Popup (void) +Popup::~Popup() { mxControl.reset(); mxContainer.reset(); @@ -77,21 +77,21 @@ void Popup::Show (ToolBox& rToolBox) } } -void Popup::Hide (void) +void Popup::Hide() { if (mxContainer) if (mxContainer->IsInPopupMode()) mxContainer->EndPopupMode(); } -void Popup::SetPopupModeEndHandler (const ::boost::function& rCallback) +void Popup::SetPopupModeEndHandler (const ::boost::function& rCallback) { maPopupModeEndCallback = rCallback; if (mxContainer) mxContainer->SetPopupModeEndHdl(LINK(this, Popup, PopupModeEndHandler)); } -void Popup::ProvideContainerAndControl (void) +void Popup::ProvideContainerAndControl() { if ( ! (mxContainer && mxControl) && mpParent!=NULL @@ -101,7 +101,7 @@ void Popup::ProvideContainerAndControl (void) } } -void Popup::CreateContainerAndControl (void) +void Popup::CreateContainerAndControl() { mxContainer.reset(new PopupContainer(mpParent)); mxContainer->SetAccessibleName(msAccessibleName); diff --git a/svx/source/sidebar/tools/PopupContainer.cxx b/svx/source/sidebar/tools/PopupContainer.cxx index 1c37b6c6bbf0..675e80fbabf1 100644 --- a/svx/source/sidebar/tools/PopupContainer.cxx +++ b/svx/source/sidebar/tools/PopupContainer.cxx @@ -30,7 +30,7 @@ PopupContainer::PopupContainer (vcl::Window* pParent) -PopupContainer::~PopupContainer (void) +PopupContainer::~PopupContainer() { } diff --git a/svx/source/sidebar/tools/PopupControl.cxx b/svx/source/sidebar/tools/PopupControl.cxx index d8c686546e29..48a908b4938f 100644 --- a/svx/source/sidebar/tools/PopupControl.cxx +++ b/svx/source/sidebar/tools/PopupControl.cxx @@ -38,7 +38,7 @@ PopupControl::PopupControl ( -PopupControl::~PopupControl (void) +PopupControl::~PopupControl() { } diff --git a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx index 5ef7f36ca384..3927029ad371 100644 --- a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx +++ b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx @@ -42,7 +42,7 @@ ValueSetWithTextControl::ValueSetWithTextControl( } -ValueSetWithTextControl::~ValueSetWithTextControl(void) +ValueSetWithTextControl::~ValueSetWithTextControl() { } -- cgit