123456789101112131415161718192021222324252627282930313233 |
- #include "GlobalVariable.h"
- #include "spdlog/spdlog.h"
- #include <QFile>
- /* =========================================================================================
- * 计算线程信息结构体
- * =========================================================================================*/
- CalculateThreadInfo_t::CalculateThreadInfo_t(const CalculateThreadInfo_t& info)
- {
- *this = info; // 使用赋值运算符进行深拷贝
- }
- CalculateThreadInfo_t& CalculateThreadInfo_t::operator=(const CalculateThreadInfo_t& info)
- {
- if(&info == this)
- {
- return *this; // 防止自赋值
- }
- CompareItemID = info.CompareItemID;
- strCompareItemName = info.strCompareItemName;
- vecRoad = info.vecRoad;
- threadState = info.threadState;
- threadType = info.threadType;
- pThread = info.pThread;
- return *this;
- }
|