Allow passing const wxWindow* to more wxBitmapBundle methods
Take const pointer in GetConsensusSizeFor(), which only uses this parameter to get the DPI scale factor, and CreateImageList(), using it only to pass it on to GetConsensusSizeFor(). No real changes.
This commit is contained in:
parent
53b4f4ddf2
commit
089bf467a9
2 changed files with 4 additions and 4 deletions
|
|
@ -162,12 +162,12 @@ public:
|
|||
wxNODISCARD static wxSize
|
||||
GetConsensusSizeFor(double scale, const wxVector<wxBitmapBundle>& bundles);
|
||||
wxNODISCARD static wxSize
|
||||
GetConsensusSizeFor(wxWindow* win, const wxVector<wxBitmapBundle>& bundles);
|
||||
GetConsensusSizeFor(const wxWindow* win, const wxVector<wxBitmapBundle>& bundles);
|
||||
|
||||
// Create wxImageList and fill it with the images from the given bundles in
|
||||
// the sizes appropriate for the DPI scaling used for the specified window.
|
||||
wxNODISCARD static wxImageList*
|
||||
CreateImageList(wxWindow* win, const wxVector<wxBitmapBundle>& bundles);
|
||||
CreateImageList(const wxWindow* win, const wxVector<wxBitmapBundle>& bundles);
|
||||
|
||||
private:
|
||||
typedef wxObjectDataPtr<wxBitmapBundleImpl> wxBitmapBundleImplPtr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue