ENH:Fix the issue of local variables being used without initialization

jira: [STUDIO-10756]


Change-Id: I56d19d04dbd5064f6657d5a762a44223b4a79a56
This commit is contained in:
milk 2025-05-14 21:20:27 +08:00 committed by lane.wei
parent ae756297a7
commit ee07057835

View File

@ -1504,7 +1504,7 @@ void SelectMachineDialog::update_print_status_msg()
// for (const auto &info : m_pre_print_checker.filamentList) { update_ams_status_msg(info.msg, info.level == Error ? true : false); }
std::vector<wxString> filamentList_msgs;
bool filamentList_color;
bool filamentList_color = false ;
for (const auto &info : m_pre_print_checker.filamentList) {
filamentList_msgs.push_back(info.msg);
filamentList_color = info.level == Error ? true : false;
@ -1513,7 +1513,7 @@ void SelectMachineDialog::update_print_status_msg()
std::vector<wxString> printerList_msgs;
bool printermsg_color;
bool printermsg_color = false;
for (const auto &info : m_pre_print_checker.printerList) {
printerList_msgs.push_back(info.msg);
printermsg_color = info.level == Error ? true : false;