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 /sfx2/source/dialog | |
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 'sfx2/source/dialog')
-rw-r--r-- | sfx2/source/dialog/filedlghelper.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/dialog/filedlgimpl.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/dialog/splitwin.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 10 |
4 files changed, 8 insertions, 8 deletions
diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx index 33f532b9b293..ac7d9ec2e081 100644 --- a/sfx2/source/dialog/filedlghelper.cxx +++ b/sfx2/source/dialog/filedlghelper.cxx @@ -356,7 +356,7 @@ void FileDialogHelper_Impl::SaveLastUsedFilter( const OUString& _rContextIdentif makeAny( getFilterWithExtension( getFilter() ) ) ); } -void FileDialogHelper_Impl::SaveLastUsedFilter( void ) +void FileDialogHelper_Impl::SaveLastUsedFilter() { const OUString* pConfigId = GetLastFilterConfigId( meContext ); if( pConfigId ) diff --git a/sfx2/source/dialog/filedlgimpl.hxx b/sfx2/source/dialog/filedlgimpl.hxx index b947ca9adecd..b9e069680095 100644 --- a/sfx2/source/dialog/filedlgimpl.hxx +++ b/sfx2/source/dialog/filedlgimpl.hxx @@ -139,7 +139,7 @@ namespace sfx2 void LoadLastUsedFilter( const OUString& _rContextIdentifier ); void SaveLastUsedFilter( const OUString& _rContextIdentifier ); - void SaveLastUsedFilter( void ); + void SaveLastUsedFilter(); void implInitializeFileName( ); diff --git a/sfx2/source/dialog/splitwin.cxx b/sfx2/source/dialog/splitwin.cxx index 250d6e56ad5f..461feacf5031 100644 --- a/sfx2/source/dialog/splitwin.cxx +++ b/sfx2/source/dialog/splitwin.cxx @@ -63,7 +63,7 @@ namespace { } } - ~DeactivateUpdateMode( void ) + ~DeactivateUpdateMode() { if ( mbUpdateMode ) { diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index cc726c4d1cb9..633af8b531e6 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -228,7 +228,7 @@ SfxActionListBox::SfxActionListBox(SfxCommonTemplateDialog_Impl* pParent, WinBit EnableContextMenuHandling(); } -PopupMenu* SfxActionListBox::CreateContextMenu( void ) +PopupMenu* SfxActionListBox::CreateContextMenu() { if( !( GetSelectionCount() > 0 ) ) @@ -251,7 +251,7 @@ SfxTemplatePanelControl::SfxTemplatePanelControl(SfxBindings* pBindings, vcl::Wi SetStyle(GetStyle() & ~WB_DOCKABLE); } -SfxTemplatePanelControl::~SfxTemplatePanelControl (void) +SfxTemplatePanelControl::~SfxTemplatePanelControl() { } @@ -274,7 +274,7 @@ void SfxTemplatePanelControl::Resize() DockingWindow::Resize(); } -void SfxTemplatePanelControl::FreeResource (void) +void SfxTemplatePanelControl::FreeResource() { DockingWindow::FreeResource(); } @@ -2033,7 +2033,7 @@ void SfxCommonTemplateDialog_Impl::EnableExample_Impl(sal_uInt16 nId, bool bEnab EnableItem(nId, bEnable); } -PopupMenu* SfxCommonTemplateDialog_Impl::CreateContextMenu( void ) +PopupMenu* SfxCommonTemplateDialog_Impl::CreateContextMenu() { if ( bBindingUpdate ) { @@ -2064,7 +2064,7 @@ SfxTemplateDialog_Impl::SfxTemplateDialog_Impl( Initialize(); } -void SfxTemplateDialog_Impl::Initialize (void) +void SfxTemplateDialog_Impl::Initialize() { SfxCommonTemplateDialog_Impl::Initialize(); |