From 669b642758788c1ed187e7a1b862475747964c85 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期二, 15 七月 2025 15:45:10 +0800
Subject: [PATCH] 1.CReport列表在界面中的显示;
---
SourceCode/Bond/Servo/HsmsPassive.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/SourceCode/Bond/Servo/HsmsPassive.cpp b/SourceCode/Bond/Servo/HsmsPassive.cpp
index 19b97dc..a40a131 100644
--- a/SourceCode/Bond/Servo/HsmsPassive.cpp
+++ b/SourceCode/Bond/Servo/HsmsPassive.cpp
@@ -296,8 +296,7 @@
strVariable.Delete(strVariable.GetLength() - 1);
auto vids = parseVidList(strVariable);
-
- SERVO::CReport* pReport = new SERVO::CReport(atoi((LPTSTR)(LPCTSTR)strId));
+ SERVO::CReport* pReport = new SERVO::CReport(atoi((LPTSTR)(LPCTSTR)strId), vids);
for (auto vid : vids) {
SERVO::CVariable* pVariable = getVariable(vid);
if (pVariable != nullptr) {
@@ -333,13 +332,13 @@
m_reports.clear();
}
-std::vector<int> CHsmsPassive::parseVidList(CString& strNums)
+std::vector<unsigned int> CHsmsPassive::parseVidList(CString& strNums)
{
// 1. 鍏堝幓鎺夊彲鑳藉嚭鐜扮殑绌虹櫧绗︼紙绌烘牸銆佸埗琛ㄧ绛夛級
strNums.Trim();
// 2锔�.
- std::vector<int> result;
+ std::vector<unsigned int> result;
int i = 0;
CString strVid;
while (1) {
@@ -487,6 +486,7 @@
}
clearAllVariabel();
+ clearAllReport();
return 0;
}
--
Gitblit v1.9.3