Fixed some compiler warnings

This commit is contained in:
Lukas Matena 2022-03-31 15:57:19 +02:00
parent e01d32d01a
commit aa2a8178f8
3 changed files with 2 additions and 5 deletions

View File

@ -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();

View File

@ -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.

View File

@ -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