From 9844ad4bd46b5ebd43764c9c492be59726aa9c2c Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 23 Oct 2018 22:19:31 +0200 Subject: [PATCH] [DEV] update new etk Uri API --- sample/read.cpp | 4 ++-- sample/write.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sample/read.cpp b/sample/read.cpp index 03794c3..54eee67 100644 --- a/sample/read.cpp +++ b/sample/read.cpp @@ -17,7 +17,7 @@ static void readFromFile() { exml::Document doc; //! [exml_sample_declare_doc] //! [exml_sample_read_file] - bool retParse = doc.load("DATA:///read.xml"); + bool retParse = doc.load(etk::Uri("DATA:///read.xml")); //! [exml_sample_read_file] TEST_INFO("parse ret = " << retParse); TEST_INFO("Debug display of the tree:"); @@ -56,7 +56,7 @@ static void readFromString2() { static void readFull() { exml::Document doc; TEST_INFO("parse"); - bool retParse = doc.load("DATA:///read.xml"); + bool retParse = doc.load(etk::Uri("DATA:///read.xml")); TEST_INFO("parse ret = " << retParse); TEST_INFO("Debug display of the tree:"); doc.display(); diff --git a/sample/write.cpp b/sample/write.cpp index 0ca54db..f5d4813 100644 --- a/sample/write.cpp +++ b/sample/write.cpp @@ -18,7 +18,7 @@ static void writeToFile() { doc.nodes.add(exml::Comment("basic comment")); TEST_INFO("store"); //! [exml_sample_write_file] - bool retGenerate = doc.store("generate.xml"); + bool retGenerate = doc.store(etk::Path("generate.xml")); //! [exml_sample_write_file] TEST_INFO("parse ret = " << retGenerate); TEST_INFO("Debug display of the tree:");