Skip to content

Commit

Permalink
cpp: Format
Browse files Browse the repository at this point in the history
Change-Id: I4e242412e3cfbd70b2d0a4f50f8cf0f987e79d54
  • Loading branch information
calcitem committed Oct 2, 2023
1 parent 3974341 commit e8b21bf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/perfect/perfect_hash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Hash::Hash(int the_w, int the_b, Sector *sec)
we get back such positions. (this is what the line below is for)
We call the sets obtained based on the above loop orbits. (we only
look at the white part of the positions) Below, the ws flipVertically is
look at the white part of the positions) Below, the ws flip is
needed because the different elements of the set we get by
supplementing an orbit with blacks (everywhere in the same way (in a
collapsed sense)), may be in different partitions. The reason for
Expand Down
2 changes: 1 addition & 1 deletion src/perfect/perfect_move.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class CMove
{
public:
virtual std::vector<int> getFields() = 0; // Returns the fields included in
// the step
// the step
virtual ~CMove() = default;

protected:
Expand Down
6 changes: 4 additions & 2 deletions src/test/ai_shared_memory_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@ AiSharedMemoryDialog::AiSharedMemoryDialog(QWidget *parent, QString k)
buttonBox->addButton(stopButton, QDialogButtonBox::ActionRole);
buttonBox->addButton(closeButton, QDialogButtonBox::RejectRole);

connect(startButton, &QAbstractButton::clicked, this, &AiSharedMemoryDialog::startAction);
connect(stopButton, &QAbstractButton::clicked, this, &AiSharedMemoryDialog::stopAction);
connect(startButton, &QAbstractButton::clicked, this,
&AiSharedMemoryDialog::startAction);
connect(stopButton, &QAbstractButton::clicked, this,
&AiSharedMemoryDialog::stopAction);
connect(closeButton, &QAbstractButton::clicked, this, &QWidget::close);

QGridLayout *mainLayout;
Expand Down
3 changes: 2 additions & 1 deletion src/test/ai_shared_memory_dialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ class AiSharedMemoryDialog : public QDialog
Q_OBJECT

public:
explicit AiSharedMemoryDialog(QWidget *parent = nullptr, QString k = "Key0");
explicit AiSharedMemoryDialog(QWidget *parent = nullptr, QString k = "Key"
"0");
~AiSharedMemoryDialog() override;

void setKey(const QString &k) noexcept { key = k; }
Expand Down

0 comments on commit e8b21bf

Please sign in to comment.