summaryrefslogtreecommitdiff
path: root/cppu/source/UnsafeBridge
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 /cppu/source/UnsafeBridge
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 'cppu/source/UnsafeBridge')
-rw-r--r--cppu/source/UnsafeBridge/UnsafeBridge.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/cppu/source/UnsafeBridge/UnsafeBridge.cxx b/cppu/source/UnsafeBridge/UnsafeBridge.cxx
index b51f17836ff0..533ff93b372c 100644
--- a/cppu/source/UnsafeBridge/UnsafeBridge.cxx
+++ b/cppu/source/UnsafeBridge/UnsafeBridge.cxx
@@ -47,30 +47,30 @@ class UnsafeBridge : public cppu::Enterable
sal_Int32 m_count;
oslThreadIdentifier m_threadId;
- virtual ~UnsafeBridge(void);
+ virtual ~UnsafeBridge();
public:
- explicit UnsafeBridge(void);
+ explicit UnsafeBridge();
virtual void v_callInto_v(uno_EnvCallee * pCallee, va_list * pParam) SAL_OVERRIDE;
virtual void v_callOut_v (uno_EnvCallee * pCallee, va_list * pParam) SAL_OVERRIDE;
- virtual void v_enter(void) SAL_OVERRIDE;
- virtual void v_leave(void) SAL_OVERRIDE;
+ virtual void v_enter() SAL_OVERRIDE;
+ virtual void v_leave() SAL_OVERRIDE;
virtual bool v_isValid(rtl::OUString * pReason) SAL_OVERRIDE;
};
-UnsafeBridge::UnsafeBridge(void)
+UnsafeBridge::UnsafeBridge()
: m_count (0),
m_threadId(0)
{
LOG_LIFECYCLE_UnsafeBridge_emit(fprintf(stderr, "LIFE: %s -> %p\n", "UnsafeBridge::UnsafeBridge(uno_Environment * pEnv)", this));
}
-UnsafeBridge::~UnsafeBridge(void)
+UnsafeBridge::~UnsafeBridge()
{
- LOG_LIFECYCLE_UnsafeBridge_emit(fprintf(stderr, "LIFE: %s -> %p\n", "UnsafeBridge::~UnsafeBridge(void)", this));
+ LOG_LIFECYCLE_UnsafeBridge_emit(fprintf(stderr, "LIFE: %s -> %p\n", "UnsafeBridge::~UnsafeBridge()", this));
SAL_WARN_IF(m_count < 0, "cppu.unsafebridge", "m_count is less than 0");
}
@@ -94,7 +94,7 @@ void UnsafeBridge::v_callOut_v(uno_EnvCallee * pCallee, va_list * pParam)
m_threadId = osl::Thread::getCurrentIdentifier();
}
-void UnsafeBridge::v_enter(void)
+void UnsafeBridge::v_enter()
{
m_mutex.acquire();
@@ -106,7 +106,7 @@ void UnsafeBridge::v_enter(void)
++ m_count;
}
-void UnsafeBridge::v_leave(void)
+void UnsafeBridge::v_leave()
{
SAL_WARN_IF(m_count <= 0, "cppu.unsafebridge", "m_count is less than or equal to 0");