mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
removes the semicolons after empty function definitions these semicolons are optional, they don't do anything this will have functions be consistently formatted if we want to keep the option to have these on the same line like they were before we should use the option AllowShortFunctionsOnASingleLine: None
26 lines
439 B
C++
26 lines
439 B
C++
#ifndef SIGNALHANDLER_H
|
|
#define SIGNALHANDLER_H
|
|
|
|
#include <QObject>
|
|
|
|
class QSocketNotifier;
|
|
|
|
class SignalHandler : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
SignalHandler(QObject *parent = 0);
|
|
~SignalHandler()
|
|
{
|
|
}
|
|
static void sigHupHandler(int /* sig */);
|
|
static void sigSegvHandler(int sig);
|
|
|
|
private:
|
|
static int sigHupFD[2];
|
|
QSocketNotifier *snHup;
|
|
private slots:
|
|
void internalSigHupHandler();
|
|
};
|
|
|
|
#endif
|