mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 12:33:35 +08:00
-Wold-style-cast; linked list items made noncopyable
This commit is contained in:
@@ -102,7 +102,11 @@ TEST(LinkedList, Basic)
|
||||
TEST(LinkedList, Sorting)
|
||||
{
|
||||
uavcan::LinkedListRoot<ListItem> root;
|
||||
ListItem items[] = {0, 1, 2, 3, 4, 5};
|
||||
ListItem items[6];
|
||||
for (int i = 0; i < 6; i++)
|
||||
{
|
||||
items[i].value = i;
|
||||
}
|
||||
|
||||
EXPECT_EQ(0, root.getLength());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user