fw: FaceTable::get returns Face* instead of shared_ptr
refs #3205
Change-Id: I1c61493382fe065389266ff3519ab2b265fe4f79
diff --git a/daemon/fw/strategy.hpp b/daemon/fw/strategy.hpp
index 386dd7f..bc8c348 100644
--- a/daemon/fw/strategy.hpp
+++ b/daemon/fw/strategy.hpp
@@ -171,11 +171,11 @@
MeasurementsAccessor&
getMeasurements();
- shared_ptr<Face>
- getFace(FaceId id);
+ Face*
+ getFace(FaceId id) const;
const FaceTable&
- getFaceTable();
+ getFaceTable() const;
protected: // accessors
signal::Signal<FaceTable, shared_ptr<Face>>& afterAddFace;
@@ -230,14 +230,14 @@
return m_measurements;
}
-inline shared_ptr<Face>
-Strategy::getFace(FaceId id)
+inline Face*
+Strategy::getFace(FaceId id) const
{
return m_forwarder.getFace(id);
}
inline const FaceTable&
-Strategy::getFaceTable()
+Strategy::getFaceTable() const
{
return m_forwarder.getFaceTable();
}