mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 22:42:14 -07:00
remove useless semicolons
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
This commit is contained in:
parent
c75f5386b5
commit
9b65422d5a
8 changed files with 26 additions and 8 deletions
|
|
@ -26,6 +26,8 @@ PointerAlignment: Right
|
||||||
SortIncludes: true
|
SortIncludes: true
|
||||||
IncludeBlocks: Regroup
|
IncludeBlocks: Regroup
|
||||||
StatementAttributeLikeMacros: [emit]
|
StatementAttributeLikeMacros: [emit]
|
||||||
|
# requires clang-format 16
|
||||||
|
# RemoveSemicolon: true
|
||||||
---
|
---
|
||||||
Language: Proto
|
Language: Proto
|
||||||
AllowShortFunctionsOnASingleLine: None
|
AllowShortFunctionsOnASingleLine: None
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,9 @@ private:
|
||||||
enum Attr a;
|
enum Attr a;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CardFilter(QString &term, Type type, Attr attr) : trm(term), t(type), a(attr) {};
|
CardFilter(QString &term, Type type, Attr attr) : trm(term), t(type), a(attr)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
Type type() const
|
Type type() const
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,9 @@ class TabDeckStorageVisual final : public Tab
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit TabDeckStorageVisual(TabSupervisor *_tabSupervisor);
|
explicit TabDeckStorageVisual(TabSupervisor *_tabSupervisor);
|
||||||
void retranslateUi() override {};
|
void retranslateUi() override
|
||||||
|
{
|
||||||
|
}
|
||||||
[[nodiscard]] QString getTabText() const override
|
[[nodiscard]] QString getTabText() const override
|
||||||
{
|
{
|
||||||
return tr("Visual Deck Storage");
|
return tr("Visual Deck Storage");
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,9 @@ public:
|
||||||
const QString & /* logMessage */,
|
const QString & /* logMessage */,
|
||||||
LogMessage_TargetType /* targetType */,
|
LogMessage_TargetType /* targetType */,
|
||||||
const int /* targetId */,
|
const int /* targetId */,
|
||||||
const QString & /* targetName */) {};
|
const QString & /* targetName */)
|
||||||
|
{
|
||||||
|
}
|
||||||
virtual bool checkUserIsBanned(Server_ProtocolHandler * /* session */,
|
virtual bool checkUserIsBanned(Server_ProtocolHandler * /* session */,
|
||||||
QString & /* banReason */,
|
QString & /* banReason */,
|
||||||
int & /* banSecondsRemaining */)
|
int & /* banSecondsRemaining */)
|
||||||
|
|
|
||||||
|
|
@ -182,7 +182,9 @@ class LoadSpoilersPage : public SimpleDownloadFilePage
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit LoadSpoilersPage(QWidget * = nullptr) {};
|
explicit LoadSpoilersPage(QWidget * = nullptr)
|
||||||
|
{
|
||||||
|
}
|
||||||
void retranslateUi() override;
|
void retranslateUi() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
@ -197,7 +199,9 @@ class LoadTokensPage : public SimpleDownloadFilePage
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit LoadTokensPage(QWidget * = nullptr) {};
|
explicit LoadTokensPage(QWidget * = nullptr)
|
||||||
|
{
|
||||||
|
}
|
||||||
void retranslateUi() override;
|
void retranslateUi() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,9 @@ class OracleWizardPage : public QWizardPage
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit OracleWizardPage(QWidget *parent = nullptr) : QWizardPage(parent) {};
|
explicit OracleWizardPage(QWidget *parent = nullptr) : QWizardPage(parent)
|
||||||
|
{
|
||||||
|
}
|
||||||
virtual void retranslateUi() = 0;
|
virtual void retranslateUi() = 0;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,9 @@ public:
|
||||||
AbstractServerSocketInterface(Servatrice *_server,
|
AbstractServerSocketInterface(Servatrice *_server,
|
||||||
Servatrice_DatabaseInterface *_databaseInterface,
|
Servatrice_DatabaseInterface *_databaseInterface,
|
||||||
QObject *parent = 0);
|
QObject *parent = 0);
|
||||||
~AbstractServerSocketInterface() {};
|
~AbstractServerSocketInterface()
|
||||||
|
{
|
||||||
|
}
|
||||||
bool initSession();
|
bool initSession();
|
||||||
|
|
||||||
virtual QHostAddress getPeerAddress() const = 0;
|
virtual QHostAddress getPeerAddress() const = 0;
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,9 @@ class SignalHandler : public QObject
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
SignalHandler(QObject *parent = 0);
|
SignalHandler(QObject *parent = 0);
|
||||||
~SignalHandler() {};
|
~SignalHandler()
|
||||||
|
{
|
||||||
|
}
|
||||||
static void sigHupHandler(int /* sig */);
|
static void sigHupHandler(int /* sig */);
|
||||||
static void sigSegvHandler(int sig);
|
static void sigSegvHandler(int sig);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue