mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 17:19:04 +08:00
Fixed some compiler warnings
This commit is contained in:
parent
e01d32d01a
commit
aa2a8178f8
@ -1084,7 +1084,7 @@ void Control::Ruler::update(const std::vector<double>& values, double scroll_ste
|
||||
{
|
||||
if (!m_parent || values.empty() ||
|
||||
// check if need to update ruler in respect to input values
|
||||
values.front() == m_min_val && values.back() == m_max_val && m_scroll_step == scroll_step && max_values.size() == m_max_values_cnt)
|
||||
(values.front() == m_min_val && values.back() == m_max_val && m_scroll_step == scroll_step && max_values.size() == m_max_values_cnt))
|
||||
return;
|
||||
|
||||
m_min_val = values.front();
|
||||
|
@ -530,9 +530,6 @@ wxExecuteEnv get_appimage_exec_env()
|
||||
} // namespace
|
||||
void desktop_execute(const char* argv[])
|
||||
{
|
||||
if (sizeof(argv) == 0)
|
||||
return;
|
||||
|
||||
// Check if we're running in an AppImage container, if so, we need to remove AppImage's env vars,
|
||||
// because they may mess up the environment expected by the file manager.
|
||||
// Mostly this is about LD_LIBRARY_PATH, but we remove a few more too for good measure.
|
||||
|
@ -207,7 +207,7 @@ bool AppUpdateDownloadDialog::run_after_download() const
|
||||
|
||||
boost::filesystem::path AppUpdateDownloadDialog::get_download_path() const
|
||||
{
|
||||
return std::move(boost::filesystem::path(txtctrl_path->GetValue().ToUTF8().data()));
|
||||
return boost::filesystem::path(txtctrl_path->GetValue().ToUTF8().data());
|
||||
}
|
||||
|
||||
// MsgUpdateConfig
|
||||
|
Loading…
x
Reference in New Issue
Block a user