From 01cfe5d083d096a71e5a86b3f24ba125770fb18a Mon Sep 17 00:00:00 2001 From: Don HO Date: Wed, 4 Apr 2018 01:14:11 +0200 Subject: [PATCH] Rename label in functionlist output json --- .../src/WinControls/FunctionList/functionListPanel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp b/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp index 81bd47fb0..461097a22 100644 --- a/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp +++ b/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp @@ -255,7 +255,7 @@ bool FunctionListPanel::serialize(const generic_string & outputFilename) } const char* rootLabel = "root"; - const char* branchesLabel = "branches"; + const char* nodesLabel = "nodes"; const char* leavesLabel = "leaves"; const char* nameLabel = "name"; @@ -272,7 +272,7 @@ bool FunctionListPanel::serialize(const generic_string & outputFilename) bool isFound = false; std::string nodeName = wmc->wchar2char(info._data2.c_str(), CP_ACP); - for (auto & i : j[branchesLabel]) + for (auto & i : j[nodesLabel]) { if (nodeName == i[nameLabel]) { @@ -286,7 +286,7 @@ bool FunctionListPanel::serialize(const generic_string & outputFilename) { json aNode = { { leavesLabel, json::array() },{ nameLabel, nodeName.c_str() } }; aNode[leavesLabel].push_back(leafName.c_str()); - j[branchesLabel].push_back(aNode); + j[nodesLabel].push_back(aNode); } } else // leaf