mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 12:11:15 -06:00 
			
		
		
		
	Fixed some compiler warnings.
This commit is contained in:
		
							parent
							
								
									be9114c6c8
								
							
						
					
					
						commit
						4d2bee36e5
					
				
					 3 changed files with 5 additions and 3 deletions
				
			
		|  | @ -40,6 +40,7 @@ | |||
| #include "slic3r/Utils/PresetUpdater.hpp" | ||||
| #include "format.hpp" | ||||
| #include "MsgDialog.hpp" | ||||
| #include "libslic3r/libslic3r.h" | ||||
| 
 | ||||
| #if defined(__linux__) && defined(__WXGTK3__) | ||||
| #define wxLinux_gtk3 true | ||||
|  | @ -65,6 +66,7 @@ bool Bundle::load(fs::path source_path, bool ais_in_resources, bool ais_prusa_bu | |||
| 
 | ||||
|     std::string path_string = source_path.string(); | ||||
|     auto [config_substitutions, presets_loaded] = preset_bundle->load_configbundle(path_string, PresetBundle::LoadConfigBundleAttribute::LoadSystem); | ||||
|     UNUSED(config_substitutions); | ||||
|     // No substitutions shall be reported when loading a system config bundle, no substitutions are allowed.
 | ||||
|     assert(config_substitutions.empty()); | ||||
|     auto first_vendor = preset_bundle->vendors.begin(); | ||||
|  |  | |||
|  | @ -50,7 +50,7 @@ void ButtonsListCtrl::OnPaint(wxPaintEvent&) | |||
|     const wxColour& selected_btn_bg  = Slic3r::GUI::wxGetApp().get_color_selected_btn_bg(); | ||||
|     const wxColour& default_btn_bg   = Slic3r::GUI::wxGetApp().get_highlight_default_clr(); | ||||
|     const wxColour& btn_marker_color = Slic3r::GUI::wxGetApp().get_color_hovered_btn_label(); | ||||
|     for (int idx = 0; idx < m_pageButtons.size(); idx++) { | ||||
|     for (int idx = 0; idx < int(m_pageButtons.size()); idx++) { | ||||
|         wxButton* btn = m_pageButtons[idx]; | ||||
| 
 | ||||
|         btn->SetBackgroundColour(idx == m_selection ? selected_btn_bg : default_btn_bg); | ||||
|  |  | |||
|  | @ -272,9 +272,9 @@ void NotificationManager::PopNotification::count_lines() | |||
| 			// find next suitable endline
 | ||||
| 			if (ImGui::CalcTextSize(text.substr(last_end).c_str()).x >= m_window_width - m_window_width_offset) { | ||||
| 				// more than one line till end
 | ||||
| 				int next_space = text.find_first_of(' ', last_end); | ||||
| 				size_t next_space = text.find_first_of(' ', last_end); | ||||
| 				if (next_space > 0 && next_space < text.length()) { | ||||
| 					int next_space_candidate = text.find_first_of(' ', next_space + 1); | ||||
|                     size_t next_space_candidate = text.find_first_of(' ', next_space + 1); | ||||
| 					while (next_space_candidate > 0 && ImGui::CalcTextSize(text.substr(last_end, next_space_candidate - last_end).c_str()).x < m_window_width - m_window_width_offset) { | ||||
| 						next_space = next_space_candidate; | ||||
| 						next_space_candidate = text.find_first_of(' ', next_space + 1); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lukáš Hejl
						Lukáš Hejl