Refactoring:

1. Use C++ style cast instead of C style
2. Deleted unused code from Search
This commit is contained in:
YuSanka
2020-11-26 13:45:30 +01:00
parent 92df2ee84f
commit 3bc30d868e
18 changed files with 110 additions and 256 deletions

View File

@@ -519,7 +519,7 @@ void PresetComboBox::OnDrawItem(wxDC& dc,
int item,
int flags) const
{
const wxBitmap& bmp = *(wxBitmap*)m_bitmaps[item];
const wxBitmap& bmp = *(static_cast<wxBitmap*>(m_bitmaps[item]));
if (bmp.IsOk())
{
// we should use scaled! size values of bitmap