Merge pull request '修复 XEquipment 参数 getter 的 M8-M10 缺陷' (#83) from company-laptop/fix-xequipment-m8-m10 into main

Reviewed-on: #83
Reviewed-by: gjm <littleoldpan@163.com>
This commit was merged in pull request #83.
This commit is contained in:
gjm committed 2026-10-27 10:59:38 +08:00
commit 2ec42bdd5f
3 files changed
+8 -5

No files matched your search

@@ -54,8 +54,9 @@ public:\
static const CString key;\
##type Get##key() const\
{\
type v;\
m_pXDataMap->GetAt(key, v);\
type v = type();\
if (m_pXDataMap)\
m_pXDataMap->GetAt(key, v);\
return v;\
}
@@ -132,7 +132,8 @@ int AecDbXEquipment::GetType() const
{
assertReadEnabled();
int nType = 0;
m_mapSpecXData.GetAt(KEY_TYPE, nType);
if (!m_mapSpecXData.GetAt(KEY_TYPE, nType))
acutPrintf(_T("\nAecDbXEquipment 缺少设备类型数据(KEY_TYPE),按 0 处理。"));
return nType;
}
@@ -43,8 +43,9 @@ public:\
static const CString key;\
##type Get##key() const\
{\
type v;\
m_pXDataMap->GetAt(key, v);\
type v = type();\
if (m_pXDataMap)\
m_pXDataMap->GetAt(key, v);\
return v;\
}