mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-12 10:37:02 +00:00
refactor: Fix pugixml deprecation warnings (#1677)
This commit is contained in:
parent
6013ac1823
commit
9267e72ef9
3 changed files with 16 additions and 16 deletions
|
|
@ -87,7 +87,7 @@ namespace nn
|
|||
if (httpCode != 200)
|
||||
return OLV_RESULT_STATUS(httpCode + 4000);
|
||||
|
||||
std::string request_name = doc.select_single_node("//request_name").node().child_value();
|
||||
std::string request_name = doc.select_node("//request_name").node().child_value();
|
||||
if (request_name.size() == 0)
|
||||
{
|
||||
cemuLog_log(LogType::Force, "Community download response doesn't contain <request_name>");
|
||||
|
|
@ -100,7 +100,7 @@ namespace nn
|
|||
return OLV_RESULT_INVALID_XML;
|
||||
}
|
||||
|
||||
pugi::xml_node communities = doc.select_single_node("//communities").node();
|
||||
pugi::xml_node communities = doc.select_node("//communities").node();
|
||||
if (!communities)
|
||||
{
|
||||
cemuLog_log(LogType::Force, "Community download response doesn't contain <communities>");
|
||||
|
|
|
|||
|
|
@ -223,12 +223,12 @@ namespace nn
|
|||
if (pOutData)
|
||||
{
|
||||
|
||||
std::string_view app_data = doc.select_single_node("//app_data").node().child_value();
|
||||
std::string_view community_id = doc.select_single_node("//community_id").node().child_value();
|
||||
std::string_view name = doc.select_single_node("//name").node().child_value();
|
||||
std::string_view description = doc.select_single_node("//description").node().child_value();
|
||||
std::string_view pid = doc.select_single_node("//pid").node().child_value();
|
||||
std::string_view icon = doc.select_single_node("//icon").node().child_value();
|
||||
std::string_view app_data = doc.select_node("//app_data").node().child_value();
|
||||
std::string_view community_id = doc.select_node("//community_id").node().child_value();
|
||||
std::string_view name = doc.select_node("//name").node().child_value();
|
||||
std::string_view description = doc.select_node("//description").node().child_value();
|
||||
std::string_view pid = doc.select_node("//pid").node().child_value();
|
||||
std::string_view icon = doc.select_node("//icon").node().child_value();
|
||||
|
||||
if (app_data.size() != 0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -88,12 +88,12 @@ namespace nn
|
|||
|
||||
if (pOutData)
|
||||
{
|
||||
std::string_view app_data = doc.select_single_node("//app_data").node().child_value();
|
||||
std::string_view community_id = doc.select_single_node("//community_id").node().child_value();
|
||||
std::string_view name = doc.select_single_node("//name").node().child_value();
|
||||
std::string_view description = doc.select_single_node("//description").node().child_value();
|
||||
std::string_view pid = doc.select_single_node("//pid").node().child_value();
|
||||
std::string_view icon = doc.select_single_node("//icon").node().child_value();
|
||||
std::string_view app_data = doc.select_node("//app_data").node().child_value();
|
||||
std::string_view community_id = doc.select_node("//community_id").node().child_value();
|
||||
std::string_view name = doc.select_node("//name").node().child_value();
|
||||
std::string_view description = doc.select_node("//description").node().child_value();
|
||||
std::string_view pid = doc.select_node("//pid").node().child_value();
|
||||
std::string_view icon = doc.select_node("//icon").node().child_value();
|
||||
|
||||
if (app_data.size() != 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue