summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-14 12:44:47 +0200
committerNoel Grandin <noel@peralex.com>2015-04-15 11:47:12 +0200
commit71b809959bb8f775d83dc52628448bb8b8322b28 (patch)
treef9aa4308050eb7d55611068602c0cf0e3c1b3690 /svl
parent135907f2061550624ee1859745d94eee01849070 (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 'svl')
-rw-r--r--svl/source/config/ctloptions.cxx4
-rw-r--r--svl/source/misc/inethist.cxx14
2 files changed, 9 insertions, 9 deletions
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();