Commit 825ff750 authored by Michael Reeves's avatar Michael Reeves

Strip c-style void in function defs

This was never needed for c++.
parent a6626420
...@@ -217,7 +217,7 @@ class GnuDiff ...@@ -217,7 +217,7 @@ class GnuDiff
// gnudiff_xmalloc.cpp // gnudiff_xmalloc.cpp
void *xmalloc(size_t n); void *xmalloc(size_t n);
void *xrealloc(void *p, size_t n); void *xrealloc(void *p, size_t n);
void xalloc_die(void); void xalloc_die();
inline bool isWhite(QChar c) inline bool isWhite(QChar c)
{ {
......
...@@ -30,9 +30,9 @@ ...@@ -30,9 +30,9 @@
#include "gnudiff_diff.h" #include "gnudiff_diff.h"
/* If non NULL, call this function when memory is exhausted. */ /* If non NULL, call this function when memory is exhausted. */
void (*xalloc_fail_func)(void) = nullptr; void (*xalloc_fail_func)() = nullptr;
void GnuDiff::xalloc_die(void) void GnuDiff::xalloc_die()
{ {
if(xalloc_fail_func) if(xalloc_fail_func)
(*xalloc_fail_func)(); (*xalloc_fail_func)();
......
...@@ -47,7 +47,7 @@ class OptionDialog : public KPageDialog ...@@ -47,7 +47,7 @@ class OptionDialog : public KPageDialog
public: public:
explicit OptionDialog( bool bShowDirMergeSettings, QWidget *parent = nullptr ); explicit OptionDialog( bool bShowDirMergeSettings, QWidget *parent = nullptr );
~OptionDialog( void ) override; ~OptionDialog() override;
QString parseOptions( const QStringList& optionList ); QString parseOptions( const QStringList& optionList );
QString calcOptionHelp(); QString calcOptionHelp();
...@@ -61,9 +61,9 @@ public: ...@@ -61,9 +61,9 @@ public:
void addOptionItem(OptionItemBase*); void addOptionItem(OptionItemBase*);
KKeyDialog* m_pKeyDialog; KKeyDialog* m_pKeyDialog;
protected Q_SLOTS: protected Q_SLOTS:
virtual void slotDefault( void ); virtual void slotDefault();
virtual void slotOk( void ); virtual void slotOk();
virtual void slotApply( void ); virtual void slotApply();
//virtual void buttonClicked( QAbstractButton* ); //virtual void buttonClicked( QAbstractButton* );
virtual void helpRequested(); virtual void helpRequested();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment