Port to libyang-cpp and sysrepo-cpp API change to std::string

Change-Id: I2e922014ec0d280cccafc1fd5aa4ef6a575b1c9d
Depends-on: https://gerrit.cesnet.cz/c/CzechLight/dependencies/+/5564
Depends-on: https://gerrit.cesnet.cz/c/CzechLight/netconf-cli/+/5570
diff --git a/src/system/LLDPCallback.cpp b/src/system/LLDPCallback.cpp
index c25651e..5eb1f3d 100644
--- a/src/system/LLDPCallback.cpp
+++ b/src/system/LLDPCallback.cpp
@@ -27,10 +27,10 @@
     for (const auto& n : m_lldp->getNeighbors()) {
         auto ifc = output->newPath("neighbors");
 
-        auto ifName = ifc->newPath("ifName", n.m_portId.c_str());
+        auto ifName = ifc->newPath("ifName", n.m_portId);
 
         for (const auto& [key, val] : n.m_properties) { // garbage properties in, garbage out
-            ifc->newPath(key.c_str(), val.c_str());
+            ifc->newPath(key, val);
         }
     }