Skip to content

Commit

Permalink
test: make the linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Oct 9, 2024
1 parent 8c6bbda commit 8df8123
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/entt/signal/sigh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct sigh_listener {

// useless definition just because msvc does weird things if both are empty
void i() {
val = true && val;
val = val && val;
}

bool val{false};
Expand Down Expand Up @@ -57,7 +57,8 @@ TEST(SigH, Lifetime) {

ASSERT_NO_THROW(signal{});

signal src{}, other{};
signal src{};
signal other{};

ASSERT_NO_THROW(signal{src});
ASSERT_NO_THROW(signal{std::move(other)});
Expand Down Expand Up @@ -188,7 +189,8 @@ TEST(SigH, FunctionsWithPayload) {
}

TEST(SigH, Members) {
sigh_listener l1, l2;
sigh_listener l1;
sigh_listener l2;
entt::sigh<bool(int)> sigh;
entt::sink sink{sigh};

Expand Down

0 comments on commit 8df8123

Please sign in to comment.