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

jira: [STUDIO-10756]

Change-Id: I56d19d04dbd5064f6657d5a762a44223b4a79a56
(cherry picked from commit ee0705783507d8590c8fc72e9a2f2f854060c231)
This commit is contained in:
milk 2025-05-14 21:20:27 +08:00 committed by Noisyfox
parent 15b0907df2
commit ec8261055f

View file

@ -1502,7 +1502,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;
@ -1511,7 +1511,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;