all: Fixing compatibility with NFD 0.5 and ndn-cxx 0.5

Change-Id: I3d23acf29f4858049d1040a3e421e1c7151b3aba
diff --git a/examples/ndn-triangle-calculate-routes.cpp b/examples/ndn-triangle-calculate-routes.cpp
index 614238e..b3860dc 100644
--- a/examples/ndn-triangle-calculate-routes.cpp
+++ b/examples/ndn-triangle-calculate-routes.cpp
@@ -82,9 +82,9 @@
 
       bool isFirst = true;
       for (auto& nextHop : entry.getNextHops()) {
-        cout << *nextHop.getFace();
-        auto face = nextHop.getFace();
-        auto linkService = dynamic_cast<ndn::NetDeviceLinkService*>(face->getLinkService());
+        cout << nextHop.getFace();
+        auto& face = nextHop.getFace();
+        auto linkService = dynamic_cast<ndn::NetDeviceLinkService*>(face.getLinkService());
         if (linkService == nullptr) {
           continue;
         }