mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-29 20:01:26 +00:00
build: clear 227 warnings - dead private fields, malformed comments (#15376)
build: drop dead private fields, close malformed comments (227 warnings) Clears 227 of the clang-cl warnings tracked in #15374, taking a full Windows build from 1,491 to 1,264. Five of the six changes are in headers, which are re-diagnosed in every translation unit that includes them, so the count is large for a 14-line diff. Tabbook.hpp: delete two private fields, unread since the 2022 import. m_parent also shadowed wxWindowBase::m_parent. GUI_Utils.hpp: the wxEVT_SYS_COLOUR_CHANGED lambda body is empty on Windows, so its `this` capture is unused there. (void) this; leaves the handler bound, which is what stops the event propagating. DevFirmware.h: mark m_owner [[maybe_unused]]. The class is never instantiated, and the file tracks BambuStudio, so this is the smallest divergence. Eight DeviceTab/ files, AMSItem.cpp and SelectMachine.cpp: block comments malformed so that they read as a nested /*. No behavior change. -Wcomment goes to zero, and only the three intended categories move.
This commit is contained in:
@@ -64,7 +64,7 @@ public:
|
|||||||
DevFirmware(MachineObject* obj) : m_owner(obj) {}
|
DevFirmware(MachineObject* obj) : m_owner(obj) {}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
MachineObject* m_owner = nullptr;
|
[[maybe_unused]] MachineObject* m_owner = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Slic3r
|
} // namespace Slic3r
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
/* File: uiAMSBestPositionPopup.hpp
|
/* File: uiAMSBestPositionPopup.hpp
|
||||||
* Description: The popup with suggest best ams position
|
* Description: The popup with suggest best ams position
|
||||||
*
|
*
|
||||||
//**********************************************************/
|
************************************************************/
|
||||||
|
|
||||||
#include "uiAMSBestPositionPopup.hpp"
|
#include "uiAMSBestPositionPopup.hpp"
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* File: uiAMSBestPositionPopup.hpp
|
/* File: uiAMSBestPositionPopup.hpp
|
||||||
* Description: The popup with suggest best ams position
|
* Description: The popup with suggest best ams position
|
||||||
*
|
*
|
||||||
//**********************************************************/
|
************************************************************/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "slic3r/GUI/Widgets/AMSItem.hpp"
|
#include "slic3r/GUI/Widgets/AMSItem.hpp"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
* \n class wgtDeviceNozzleRackNozzleItem;
|
* \n class wgtDeviceNozzleRackNozzleItem;
|
||||||
* \n class wgtDeviceNozzleRackToolHead;
|
* \n class wgtDeviceNozzleRackToolHead;
|
||||||
* \n class wgtDeviceNozzleRackPos;
|
* \n class wgtDeviceNozzleRackPos;
|
||||||
//**********************************************************/
|
************************************************************/
|
||||||
|
|
||||||
#include "wgtDeviceNozzleRack.h"
|
#include "wgtDeviceNozzleRack.h"
|
||||||
#include "wgtDeviceNozzleRackUpdate.h"
|
#include "wgtDeviceNozzleRackUpdate.h"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
* \n class wgtDeviceNozzleRackNozzleItem;
|
* \n class wgtDeviceNozzleRackNozzleItem;
|
||||||
* \n class wgtDeviceNozzleRackToolHead;
|
* \n class wgtDeviceNozzleRackToolHead;
|
||||||
* \n class wgtDeviceNozzleRackPos;
|
* \n class wgtDeviceNozzleRackPos;
|
||||||
//**********************************************************/
|
************************************************************/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "slic3r/GUI/DeviceCore/DevNozzleRack.h"
|
#include "slic3r/GUI/DeviceCore/DevNozzleRack.h"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
* Description: The panel with rack updating
|
* Description: The panel with rack updating
|
||||||
*
|
*
|
||||||
* \n class wgtDeviceNozzleRackUpdate
|
* \n class wgtDeviceNozzleRackUpdate
|
||||||
//**********************************************************/
|
************************************************************/
|
||||||
|
|
||||||
#include "wgtDeviceNozzleRackUpdate.h"
|
#include "wgtDeviceNozzleRackUpdate.h"
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
* Description: The panel for updating hotends
|
* Description: The panel for updating hotends
|
||||||
*
|
*
|
||||||
* \n class wgtDeviceNozzleRackUpdate
|
* \n class wgtDeviceNozzleRackUpdate
|
||||||
//**********************************************************/
|
************************************************************/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "slic3r/GUI/DeviceCore/DevNozzleRack.h"
|
#include "slic3r/GUI/DeviceCore/DevNozzleRack.h"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
* Description: The panel to select nozzle
|
* Description: The panel to select nozzle
|
||||||
*
|
*
|
||||||
* \n class wgtDeviceNozzleSelect;
|
* \n class wgtDeviceNozzleSelect;
|
||||||
//**********************************************************/
|
************************************************************/
|
||||||
|
|
||||||
#include "wgtDeviceNozzleSelect.h"
|
#include "wgtDeviceNozzleSelect.h"
|
||||||
#include "wgtDeviceNozzleRack.h"
|
#include "wgtDeviceNozzleRack.h"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
* Description: The panel to select nozzle
|
* Description: The panel to select nozzle
|
||||||
*
|
*
|
||||||
* \n class wgtDeviceNozzleSelect;
|
* \n class wgtDeviceNozzleSelect;
|
||||||
//**********************************************************/
|
************************************************************/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
|||||||
@@ -155,6 +155,9 @@ public:
|
|||||||
update_dark_config();
|
update_dark_config();
|
||||||
on_sys_color_changed();
|
on_sys_color_changed();
|
||||||
event.Skip();
|
event.Skip();
|
||||||
|
#else
|
||||||
|
// Not calling Skip() is what stops the event propagating on Windows.
|
||||||
|
(void) this;
|
||||||
#endif // __WINDOWS__
|
#endif // __WINDOWS__
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -2847,7 +2847,7 @@ void SelectMachineDialog::on_ok_btn(wxCommandEvent &event)
|
|||||||
});
|
});
|
||||||
|
|
||||||
// STUDIO-9580
|
// STUDIO-9580
|
||||||
/* use warning color if there are warning and normal messages* /
|
/* use warning color if there are warning and normal messages*/
|
||||||
/* use indexes if there are several messages*/
|
/* use indexes if there are several messages*/
|
||||||
/* add header and ending if there are several messages or has none block warnings*/
|
/* add header and ending if there are several messages or has none block warnings*/
|
||||||
if (confirm_text.size() > 1 || !is_printing_block)
|
if (confirm_text.size() > 1 || !is_printing_block)
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ public:
|
|||||||
TabButton* pageButton;
|
TabButton* pageButton;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wxWindow* m_parent;
|
|
||||||
wxFlexGridSizer* m_buttons_sizer;
|
wxFlexGridSizer* m_buttons_sizer;
|
||||||
wxBoxSizer* m_sizer;
|
wxBoxSizer* m_sizer;
|
||||||
ScalableBitmap m_arrow_img;
|
ScalableBitmap m_arrow_img;
|
||||||
@@ -400,8 +399,6 @@ private:
|
|||||||
unsigned m_showTimeout,
|
unsigned m_showTimeout,
|
||||||
m_hideTimeout;
|
m_hideTimeout;
|
||||||
|
|
||||||
TabButtonsListCtrl *m_ctrl{nullptr};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
//#endif // _WIN32
|
//#endif // _WIN32
|
||||||
#endif // slic3r_Tabbook_hpp_
|
#endif // slic3r_Tabbook_hpp_
|
||||||
|
|||||||
@@ -2083,9 +2083,6 @@ void AMSRoad::OnPassRoad(std::vector<AMSPassRoadMode> prord_list)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
|
|
||||||
|
|
||||||
/*************************************************
|
/*************************************************
|
||||||
Description:AMSRoadUpPart
|
Description:AMSRoadUpPart
|
||||||
**************************************************/
|
**************************************************/
|
||||||
|
|||||||
Reference in New Issue
Block a user