apps: lc-compliance: Remove redundant getter call
Smart pointers overload `operator->()`, no reason to use `get()`. Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
This commit is contained in:
parent
d338fe9336
commit
d8645b5f67
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ class ThrowListener : public testing::EmptyTestEventListener
|
|||
static void listCameras(CameraManager *cm)
|
||||
{
|
||||
for (const std::shared_ptr<Camera> &cam : cm->cameras())
|
||||
std::cout << "- " << cam.get()->id() << std::endl;
|
||||
std::cout << "- " << cam->id() << std::endl;
|
||||
}
|
||||
|
||||
static int initCamera(CameraManager *cm, OptionsParser::Options options)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue