mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 06:04:01 -06:00
Fix of [prusa3d/PrusaSlicer] Remove unnecessary null pointer checks (#5813)
Don't use if (ptr) delete ptr; call delete ptr; directly, it contains the test for null ptr.
This commit is contained in:
parent
d06aa60691
commit
9a2310ae98
3 changed files with 7 additions and 18 deletions
|
@ -49,8 +49,7 @@ BitmapTextRenderer::~BitmapTextRenderer()
|
|||
{
|
||||
#ifdef SUPPORTS_MARKUP
|
||||
#ifdef wxHAS_GENERIC_DATAVIEWCTRL
|
||||
if (m_markupText)
|
||||
delete m_markupText;
|
||||
delete m_markupText;
|
||||
#endif //wxHAS_GENERIC_DATAVIEWCTRL
|
||||
#endif // SUPPORTS_MARKUP
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue