File orca-slicer-ambiguous-set_values.patch of Package orca-slicer

From 057ef82db882a9ebdb947e9ce8388664cd063b08 Mon Sep 17 00:00:00 2001
From: Oleg Girko <ol@infoserver.lv>
Date: Thu, 12 Dec 2024 01:15:46 +0000
Subject: [PATCH] Another fix of compilation with GCC 14.

Slic3r::GUI::Choice::set_values() method call is ambiguous when used with
std::initializer_list: it can be called with std::vector<std::string>
or wxArrayString argument.
Resolving this ambiguity by using std::vector<std::string> explicitly.

Signed-off-by: Oleg Girko <ol@infoserver.lv>
---
 src/slic3r/GUI/PhysicalPrinterDialog.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/slic3r/GUI/PhysicalPrinterDialog.cpp b/src/slic3r/GUI/PhysicalPrinterDialog.cpp
index 1ec7b537e..14650b75a 100644
--- a/src/slic3r/GUI/PhysicalPrinterDialog.cpp
+++ b/src/slic3r/GUI/PhysicalPrinterDialog.cpp
@@ -374,7 +374,7 @@ void PhysicalPrinterDialog::build_printhost_settings(ConfigOptionsGroup* m_optgr
     // Always fill in the "printhost_port" combo box from the config and select it.
     {
         Choice* choice = dynamic_cast<Choice*>(m_optgroup->get_field("printhost_port"));
-        choice->set_values({ m_config->opt_string("printhost_port") });
+        choice->set_values(std::vector<std::string>{ m_config->opt_string("printhost_port") });
         choice->set_selection();
     }
 
-- 
2.47.1