From ec8261055fe97bc56c7c617dd0bd76786163ad9e Mon Sep 17 00:00:00 2001 From: milk Date: Wed, 14 May 2025 21:20:27 +0800 Subject: [PATCH] ENH:Fix the issue of local variables being used without initialization jira: [STUDIO-10756] Change-Id: I56d19d04dbd5064f6657d5a762a44223b4a79a56 (cherry picked from commit ee0705783507d8590c8fc72e9a2f2f854060c231) --- src/slic3r/GUI/SelectMachine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/SelectMachine.cpp b/src/slic3r/GUI/SelectMachine.cpp index 47acc372fb..ee81480797 100644 --- a/src/slic3r/GUI/SelectMachine.cpp +++ b/src/slic3r/GUI/SelectMachine.cpp @@ -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 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 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;