mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-15 15:49:36 +02:00
Make it possible to const'ify xpm.
This commit is contained in:
parent
aaecf213b8
commit
d8da4015ef
@ -54,4 +54,4 @@
|
||||
|
||||
#endif
|
||||
|
||||
std::unique_ptr<wxCursor> MakeCursor(int WXUNUSED(CursorId), const char * pXpm[36], int HotX, int HotY);
|
||||
std::unique_ptr<wxCursor> MakeCursor(int WXUNUSED(CursorId), const char * const pXpm[36], int HotX, int HotY);
|
||||
|
@ -1404,7 +1404,7 @@ int MixerBoard::FindMixerTrackCluster(const PlayableTrack* pTrack,
|
||||
|
||||
void MixerBoard::LoadMusicalInstruments()
|
||||
{
|
||||
const struct Data { const char **bitmap; wxString name; } table[] = {
|
||||
const struct Data { const char * const *bitmap; wxString name; } table[] = {
|
||||
{acoustic_guitar_gtr_xpm, wxT("acoustic_guitar_gtr")},
|
||||
{acoustic_piano_pno_xpm, wxT("acoustic_piano_pno")},
|
||||
{back_vocal_bg_vox_xpm, wxT("back_vocal_bg_vox")},
|
||||
|
@ -271,7 +271,7 @@ END_EVENT_TABLE()
|
||||
|
||||
/// Makes a cursor from an XPM, uses CursorId as a fallback.
|
||||
/// TODO: Move this function to some other source file for reuse elsewhere.
|
||||
std::unique_ptr<wxCursor> MakeCursor( int WXUNUSED(CursorId), const char * pXpm[36], int HotX, int HotY )
|
||||
std::unique_ptr<wxCursor> MakeCursor( int WXUNUSED(CursorId), const char * const pXpm[36], int HotX, int HotY )
|
||||
{
|
||||
#ifdef CURSORS_SIZE32
|
||||
const int HotAdjust =0;
|
||||
|
@ -3784,7 +3784,7 @@ void EffectUIHost::OnDefaults(wxCommandEvent & WXUNUSED(evt))
|
||||
return;
|
||||
}
|
||||
|
||||
wxBitmap EffectUIHost::CreateBitmap(const char *xpm[], bool up, bool pusher)
|
||||
wxBitmap EffectUIHost::CreateBitmap(const char * const xpm[], bool up, bool pusher)
|
||||
{
|
||||
wxMemoryDC dc;
|
||||
wxBitmap pic(xpm);
|
||||
|
@ -638,7 +638,7 @@ private:
|
||||
void OnDefaults(wxCommandEvent & evt);
|
||||
|
||||
void UpdateControls();
|
||||
wxBitmap CreateBitmap(const char *xpm[], bool up, bool pusher);
|
||||
wxBitmap CreateBitmap(const char * const xpm[], bool up, bool pusher);
|
||||
void LoadUserPresets();
|
||||
|
||||
void InitializeRealtime();
|
||||
|
Loading…
x
Reference in New Issue
Block a user