summaryrefslogtreecommitdiff
path: root/sd/source/ui/inc/tools
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 /sd/source/ui/inc/tools
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 'sd/source/ui/inc/tools')
-rw-r--r--sd/source/ui/inc/tools/AsynchronousCall.hxx4
-rw-r--r--sd/source/ui/inc/tools/AsynchronousTask.hxx4
-rw-r--r--sd/source/ui/inc/tools/ConfigurationAccess.hxx2
-rw-r--r--sd/source/ui/inc/tools/IconCache.hxx6
-rw-r--r--sd/source/ui/inc/tools/IdleDetection.hxx4
-rw-r--r--sd/source/ui/inc/tools/PropertySet.hxx10
-rw-r--r--sd/source/ui/inc/tools/SdGlobalResourceContainer.hxx8
-rw-r--r--sd/source/ui/inc/tools/SlotStateListener.hxx8
-rw-r--r--sd/source/ui/inc/tools/TimerBasedTaskExecution.hxx4
9 files changed, 25 insertions, 25 deletions
diff --git a/sd/source/ui/inc/tools/AsynchronousCall.hxx b/sd/source/ui/inc/tools/AsynchronousCall.hxx
index c6d101d01257..52bbb3ad8093 100644
--- a/sd/source/ui/inc/tools/AsynchronousCall.hxx
+++ b/sd/source/ui/inc/tools/AsynchronousCall.hxx
@@ -48,9 +48,9 @@ public:
/** Create a new asynchronous call. Each object of this class processes
one (semantical) type of call.
*/
- AsynchronousCall (void);
+ AsynchronousCall();
- ~AsynchronousCall (void);
+ ~AsynchronousCall();
/** Post a function object that is to be executed asynchronously. When
this method is called while the current function object has not bee
diff --git a/sd/source/ui/inc/tools/AsynchronousTask.hxx b/sd/source/ui/inc/tools/AsynchronousTask.hxx
index 3a2211f5c588..dae3210e57bd 100644
--- a/sd/source/ui/inc/tools/AsynchronousTask.hxx
+++ b/sd/source/ui/inc/tools/AsynchronousTask.hxx
@@ -33,13 +33,13 @@ public:
/** Run the next step of the task. After HasNextStep() returns false
this method should ignore further calls.
*/
- virtual void RunNextStep (void) = 0;
+ virtual void RunNextStep() = 0;
/** Return <TRUE/> when there is at least one more step to execute.
When the task has been executed completely then <FALSE/> is
returned.
*/
- virtual bool HasNextStep (void) = 0;
+ virtual bool HasNextStep() = 0;
protected:
~AsynchronousTask() {}
diff --git a/sd/source/ui/inc/tools/ConfigurationAccess.hxx b/sd/source/ui/inc/tools/ConfigurationAccess.hxx
index b19e313c8b3a..fa17a6a6caf6 100644
--- a/sd/source/ui/inc/tools/ConfigurationAccess.hxx
+++ b/sd/source/ui/inc/tools/ConfigurationAccess.hxx
@@ -85,7 +85,7 @@ public:
This call is ignored when the called ConfigurationAccess object was
not create with read-write mode.
*/
- void CommitChanges (void);
+ void CommitChanges();
/** This functor is typically called for every item in a set. Its two
parameters are the name of key item (often of no further interest)
diff --git a/sd/source/ui/inc/tools/IconCache.hxx b/sd/source/ui/inc/tools/IconCache.hxx
index 3ef8bc7dc2bb..8caf5a67009f 100644
--- a/sd/source/ui/inc/tools/IconCache.hxx
+++ b/sd/source/ui/inc/tools/IconCache.hxx
@@ -41,7 +41,7 @@ public:
/** The lifetime of the returned reference is limited to that of the sd
module.
*/
- static IconCache& Instance (void);
+ static IconCache& Instance();
/** Return the icon with the given resource id.
@return
@@ -59,11 +59,11 @@ private:
it at the SdGlobalResourceContainer to limit is lifetime to that of
the sd module.
*/
- IconCache (void);
+ IconCache();
/** This destructor is called by SdGlobalResourceContainer.
*/
- virtual ~IconCache (void);
+ virtual ~IconCache();
};
} // end of namespace sd
diff --git a/sd/source/ui/inc/tools/IdleDetection.hxx b/sd/source/ui/inc/tools/IdleDetection.hxx
index 7bdb8401e924..63690dc84662 100644
--- a/sd/source/ui/inc/tools/IdleDetection.hxx
+++ b/sd/source/ui/inc/tools/IdleDetection.hxx
@@ -69,11 +69,11 @@ public:
private:
/** Check whether there are input events pending.
*/
- static sal_Int32 CheckInputPending (void);
+ static sal_Int32 CheckInputPending();
/** Check whether a slide show is running full screen or in a window.
*/
- static sal_Int32 CheckSlideShowRunning (void);
+ static sal_Int32 CheckSlideShowRunning();
static sal_Int32 CheckWindowPainting (const vcl::Window& rWindow);
};
diff --git a/sd/source/ui/inc/tools/PropertySet.hxx b/sd/source/ui/inc/tools/PropertySet.hxx
index e4a97978073d..e44224377df8 100644
--- a/sd/source/ui/inc/tools/PropertySet.hxx
+++ b/sd/source/ui/inc/tools/PropertySet.hxx
@@ -46,15 +46,15 @@ class PropertySet
public PropertySetInterfaceBase
{
public:
- explicit PropertySet (void);
- virtual ~PropertySet (void);
+ explicit PropertySet();
+ virtual ~PropertySet();
- virtual void SAL_CALL disposing (void) SAL_OVERRIDE;
+ virtual void SAL_CALL disposing() SAL_OVERRIDE;
// XPropertySet
virtual css::uno::Reference<css::beans::XPropertySetInfo>
- SAL_CALL getPropertySetInfo (void)
+ SAL_CALL getPropertySetInfo()
throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setPropertyValue (
@@ -130,7 +130,7 @@ private:
/** This method throws a DisposedException when the object has already been
disposed.
*/
- void ThrowIfDisposed (void)
+ void ThrowIfDisposed()
throw (css::lang::DisposedException);
};
diff --git a/sd/source/ui/inc/tools/SdGlobalResourceContainer.hxx b/sd/source/ui/inc/tools/SdGlobalResourceContainer.hxx
index 65e1065a1a35..b9281ab6be4a 100644
--- a/sd/source/ui/inc/tools/SdGlobalResourceContainer.hxx
+++ b/sd/source/ui/inc/tools/SdGlobalResourceContainer.hxx
@@ -30,7 +30,7 @@ namespace sd {
class SdGlobalResource
{
public:
- virtual ~SdGlobalResource (void) {};
+ virtual ~SdGlobalResource() {};
};
/** The purpose of this container is to hold references to resources that
@@ -58,7 +58,7 @@ public:
class SdGlobalResourceContainer
{
public:
- static SdGlobalResourceContainer& Instance (void);
+ static SdGlobalResourceContainer& Instance();
/** Add a resource to the container. The ownership of the resource is
transferred to the container. The resource is destroyed when the
@@ -89,8 +89,8 @@ protected:
class Implementation;
::std::unique_ptr<Implementation> mpImpl;
- SdGlobalResourceContainer (void);
- ~SdGlobalResourceContainer (void);
+ SdGlobalResourceContainer();
+ ~SdGlobalResourceContainer();
};
} // end of namespace sd
diff --git a/sd/source/ui/inc/tools/SlotStateListener.hxx b/sd/source/ui/inc/tools/SlotStateListener.hxx
index 2e148b485dbe..64045d50509e 100644
--- a/sd/source/ui/inc/tools/SlotStateListener.hxx
+++ b/sd/source/ui/inc/tools/SlotStateListener.hxx
@@ -59,7 +59,7 @@ public:
/** The constructor de-registers all remaining listeners. Usually a prior
dispose() call should have done that already.
*/
- virtual ~SlotStateListener (void);
+ virtual ~SlotStateListener();
/** Set the callback to the given value. Whenever one of the observed
slots changes its state this callback is informed about it.
@@ -108,7 +108,7 @@ protected:
reaction to a XComponent::dispose() call. It releases all currently
active listeners.
*/
- virtual void SAL_CALL disposing (void) SAL_OVERRIDE;
+ virtual void SAL_CALL disposing() SAL_OVERRIDE;
private:
Link maCallback;
@@ -124,12 +124,12 @@ private:
/** Deregister all currently active state change listeners.
*/
- void ReleaseListeners (void);
+ void ReleaseListeners();
/** This method throws a DisposedException when the object has already been
disposed.
*/
- void ThrowIfDisposed (void)
+ void ThrowIfDisposed()
throw (::com::sun::star::lang::DisposedException);
/** Transform the given string into a URL object.
diff --git a/sd/source/ui/inc/tools/TimerBasedTaskExecution.hxx b/sd/source/ui/inc/tools/TimerBasedTaskExecution.hxx
index 7a79d06da1df..1bf5ec72cf14 100644
--- a/sd/source/ui/inc/tools/TimerBasedTaskExecution.hxx
+++ b/sd/source/ui/inc/tools/TimerBasedTaskExecution.hxx
@@ -56,7 +56,7 @@ public:
/** Stop the execution of the task and release the shared pointer to
itself so that it will eventually be destroyed.
*/
- void Release (void);
+ void Release();
/** Convenience method that calls Release() on the given task. It
checks the given weak_ptr for being expired and catches bad_weak_ptr
@@ -77,7 +77,7 @@ private:
const ::boost::shared_ptr<AsynchronousTask>& rpTask,
sal_uInt32 nMillisecondsBetweenSteps,
sal_uInt32 nMaxTimePerStep);
- ~TimerBasedTaskExecution (void);
+ ~TimerBasedTaskExecution();
void SetSelf (const ::boost::shared_ptr<TimerBasedTaskExecution>& rpSelf);
class Deleter;