urdf: Explicitly cast shared_ptr to bool in unit test. (#158)

This commit is contained in:
Maarten de Vries 2016-09-28 10:54:35 +02:00 committed by William Woodall
parent f8cb99cd0f
commit 1bc266932f
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ TEST_F(TestParser, test)
EXPECT_EQ(robot.getName(), robot_name);
boost::shared_ptr<const urdf::Link> root = robot.getRoot();
ASSERT_TRUE(root);
ASSERT_TRUE(static_cast<bool>(root));
EXPECT_EQ(root->name, root_name);
ASSERT_TRUE(checkModel(robot));