Move GetBitmapFromBundle() to wxMenuItemBase

This is just a refactoring to avoid duplicating this function code in
all ports and just have it once in the base class.
This commit is contained in:
Vadim Zeitlin
2022-02-05 20:35:46 +01:00
parent bec31f1919
commit 338cd95c2d
8 changed files with 25 additions and 49 deletions

View File

@@ -15,8 +15,6 @@
// headers
// ----------------------------------------------------------------------------
#include "wx/bmpbndl.h"
#if wxUSE_OWNER_DRAWN
#include "wx/ownerdrw.h"
@@ -134,8 +132,6 @@ private:
// common part of all ctors
void Init();
wxBitmap GetBitmapFromBundle(const wxBitmapBundle& bundle) const;
// Return the item position in the menu containing it.
//
// Returns -1 if the item is not attached to a menu or if we can't find its