fw: FaceTable::get returns Face* instead of shared_ptr
refs #3205
Change-Id: I1c61493382fe065389266ff3519ab2b265fe4f79
diff --git a/daemon/fw/face-table.cpp b/daemon/fw/face-table.cpp
index 4cda948..b2f1332 100644
--- a/daemon/fw/face-table.cpp
+++ b/daemon/fw/face-table.cpp
@@ -44,11 +44,14 @@
}
-shared_ptr<Face>
+Face*
FaceTable::get(FaceId id) const
{
- std::map<FaceId, shared_ptr<Face> >::const_iterator i = m_faces.find(id);
- return (i == m_faces.end()) ? (shared_ptr<Face>()) : (i->second);
+ auto i = m_faces.find(id);
+ if (i == m_faces.end()) {
+ return nullptr;
+ }
+ return i->second.get();
}
size_t