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 /vcl/unx/kde | |
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 'vcl/unx/kde')
-rw-r--r-- | vcl/unx/kde/fpicker/kdefilepicker.hxx | 6 | ||||
-rw-r--r-- | vcl/unx/kde/salnativewidgets-kde.cxx | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/vcl/unx/kde/fpicker/kdefilepicker.hxx b/vcl/unx/kde/fpicker/kdefilepicker.hxx index b586ae9a4489..819d0ecfb01f 100644 --- a/vcl/unx/kde/fpicker/kdefilepicker.hxx +++ b/vcl/unx/kde/fpicker/kdefilepicker.hxx @@ -102,17 +102,17 @@ protected: QString addExtension( const QString &rFileName ) const; void setIsSave( bool bIsSave ) { m_bIsSave = bIsSave; } - bool isSave( void ) const { return m_bIsSave; } + bool isSave() const { return m_bIsSave; } void setIsExecuting( bool bIsExecuting ) { m_bIsExecuting = bIsExecuting; } - bool isExecuting( void ) const { return m_bIsExecuting; } + bool isExecuting() const { return m_bIsExecuting; } bool isSupportedProtocol( const QString &rProtocol ) const; KURL mostLocalURL( const KURL &rURL ) const; QString localCopy( const QString &rFileName ) const; void setCanNotifySelection( bool bCanNotifySelection ) { m_bCanNotifySelection = bCanNotifySelection; } - bool canNotifySelection( void ) const { return m_bCanNotifySelection; } + bool canNotifySelection() const { return m_bCanNotifySelection; } protected slots: // Qt3 moc does not really understand #ifdef and would process both slots, diff --git a/vcl/unx/kde/salnativewidgets-kde.cxx b/vcl/unx/kde/salnativewidgets-kde.cxx index bd3dbaa4a4e0..aa873b8eb892 100644 --- a/vcl/unx/kde/salnativewidgets-kde.cxx +++ b/vcl/unx/kde/salnativewidgets-kde.cxx @@ -287,13 +287,13 @@ class WidgetPainter @see m_pPushButton */ - WidgetPainter( void ); + WidgetPainter(); /** Destructor. Destruct all the cached widgets. */ - virtual ~WidgetPainter( void ); + virtual ~WidgetPainter(); /** Paints the specified widget to the X window. @@ -444,7 +444,7 @@ class WidgetPainter static QRect region2QRect( const Rectangle& rControlRegion ); }; -WidgetPainter::WidgetPainter( void ) +WidgetPainter::WidgetPainter() : m_pPushButton( NULL ), m_pRadioButton( NULL ), m_pCheckBox( NULL ), @@ -476,7 +476,7 @@ WidgetPainter::WidgetPainter( void ) { } -WidgetPainter::~WidgetPainter( void ) +WidgetPainter::~WidgetPainter() { delete m_pPushButton, m_pPushButton = NULL; delete m_pRadioButton, m_pRadioButton = NULL; |