mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00: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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user