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 --- svl/source/config/ctloptions.cxx | 4 ++-- svl/source/misc/inethist.cxx | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'svl') diff --git a/svl/source/config/ctloptions.cxx b/svl/source/config/ctloptions.cxx index 93e6c53b54ed..1aaab84ef676 100644 --- a/svl/source/config/ctloptions.cxx +++ b/svl/source/config/ctloptions.cxx @@ -71,7 +71,7 @@ public: bool IsCTLSequenceChecking() const { return m_bCTLSequenceChecking;} void SetCTLSequenceCheckingRestricted( bool _bEnable ); - bool IsCTLSequenceCheckingRestricted( void ) const { return m_bCTLRestricted; } + bool IsCTLSequenceCheckingRestricted() const { return m_bCTLRestricted; } void SetCTLSequenceCheckingTypeAndReplace( bool _bEnable ); bool IsCTLSequenceCheckingTypeAndReplace() const { return m_bCTLTypeAndReplace; } @@ -439,7 +439,7 @@ void SvtCTLOptions::SetCTLSequenceCheckingRestricted( bool _bEnable ) pCTLOptions->SetCTLSequenceCheckingRestricted(_bEnable); } -bool SvtCTLOptions::IsCTLSequenceCheckingRestricted( void ) const +bool SvtCTLOptions::IsCTLSequenceCheckingRestricted() const { assert(pCTLOptions->IsLoaded()); return pCTLOptions->IsCTLSequenceCheckingRestricted(); diff --git a/svl/source/misc/inethist.cxx b/svl/source/misc/inethist.cxx index 98a3009b215f..984cef027120 100644 --- a/svl/source/misc/inethist.cxx +++ b/svl/source/misc/inethist.cxx @@ -58,7 +58,7 @@ class INetURLHistory_Impl: private boost::noncopyable /** Initialization. */ - void initialize (void) + void initialize() { m_nMagic = INETHIST_MAGIC_HEAD; m_nNext = 0; @@ -121,7 +121,7 @@ class INetURLHistory_Impl: private boost::noncopyable /** Initialization. */ - void initialize (void); + void initialize(); static sal_uInt16 capacity() { @@ -159,8 +159,8 @@ class INetURLHistory_Impl: private boost::noncopyable } public: - INetURLHistory_Impl (void); - ~INetURLHistory_Impl (void); + INetURLHistory_Impl(); + ~INetURLHistory_Impl(); /** putUrl/queryUrl. */ @@ -168,16 +168,16 @@ public: bool queryUrl (const OUString &rUrl); }; -INetURLHistory_Impl::INetURLHistory_Impl (void) +INetURLHistory_Impl::INetURLHistory_Impl() { initialize(); } -INetURLHistory_Impl::~INetURLHistory_Impl (void) +INetURLHistory_Impl::~INetURLHistory_Impl() { } -void INetURLHistory_Impl::initialize (void) +void INetURLHistory_Impl::initialize() { m_aHead.initialize(); -- cgit