Rename SlotWithId::slot() and VariantWithId::data() to ptr()

This commit is contained in:
Benoit Blanchon
2024-08-25 14:51:59 +02:00
parent 4327f72140
commit 2be24eded8
9 changed files with 28 additions and 28 deletions

View File

@@ -29,8 +29,8 @@ TEST_CASE("ResourceManager::swap()") {
swap(a, b);
REQUIRE(a1.data() == b.getVariant(a1.id()));
REQUIRE(b1.data() == a.getVariant(b1.id()));
REQUIRE(a1.ptr() == b.getVariant(a1.id()));
REQUIRE(b1.ptr() == a.getVariant(b1.id()));
REQUIRE(spy.log() == AllocatorLog{
Allocate(sizeofPool()) * 2,
@@ -47,8 +47,8 @@ TEST_CASE("ResourceManager::swap()") {
auto b1 = b.allocVariant();
swap(a, b);
REQUIRE(a1.data() == b.getVariant(a1.id()));
REQUIRE(b1.data() == a.getVariant(b1.id()));
REQUIRE(a1.ptr() == b.getVariant(a1.id()));
REQUIRE(b1.ptr() == a.getVariant(b1.id()));
REQUIRE(spy.log() ==
AllocatorLog{
@@ -68,8 +68,8 @@ TEST_CASE("ResourceManager::swap()") {
auto b1 = b.allocVariant();
swap(a, b);
REQUIRE(a1.data() == b.getVariant(a1.id()));
REQUIRE(b1.data() == a.getVariant(b1.id()));
REQUIRE(a1.ptr() == b.getVariant(a1.id()));
REQUIRE(b1.ptr() == a.getVariant(b1.id()));
REQUIRE(spy.log() ==
AllocatorLog{
@@ -91,7 +91,7 @@ TEST_CASE("ResourceManager::swap()") {
swap(a, b);
REQUIRE(a1.data() == b.getVariant(a1.id()));
REQUIRE(b1.data() == a.getVariant(b1.id()));
REQUIRE(a1.ptr() == b.getVariant(a1.id()));
REQUIRE(b1.ptr() == a.getVariant(b1.id()));
}
}