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/tests/sysrepo_two-daemons_daemon.cpp b/tests/sysrepo_two-daemons_daemon.cpp
index 39ed864..d58928d 100644
--- a/tests/sysrepo_two-daemons_daemon.cpp
+++ b/tests/sysrepo_two-daemons_daemon.cpp
@@ -18,9 +18,9 @@
 {
     for (const auto& [propertyName, value] : values) {
         if (!parent) {
-            parent = session.getContext().newPath((prefix + propertyName).c_str(), value.c_str(), libyang::CreationOptions::Output);
+            parent = session.getContext().newPath(prefix + propertyName, value, libyang::CreationOptions::Output);
         } else {
-            parent->newPath((prefix + propertyName).c_str(), value.c_str(), libyang::CreationOptions::Output);
+            parent->newPath(prefix + propertyName, value, libyang::CreationOptions::Output);
         }
     }
 }
@@ -65,9 +65,9 @@
 
 
         srSub = srSess.onOperGet(
-            MODULE_NAME.c_str(),
+            MODULE_NAME,
             cb,
-            (MODULE_PREFIX + "/*").c_str(),
+            MODULE_PREFIX + "/*",
             sysrepo::SubscribeOptions::Passive | sysrepo::SubscribeOptions::OperMerge);
     } else if (isDaemonSetItem) {
         data = {
@@ -77,7 +77,7 @@
 
         srSess.switchDatastore(sysrepo::Datastore::Operational);
         for (const auto& [k, v] : data) {
-            srSess.setItem((MODULE_PREFIX + k).c_str(), v.c_str());
+            srSess.setItem(MODULE_PREFIX + k, v);
         }
         srSess.applyChanges();
         srSess.switchDatastore(sysrepo::Datastore::Running);