mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-03 00:59:43 +02:00
make functions which do not require access to class member variables static so they can be called without an object to do so with. Based on part of a patch by Campbell Barton
This commit is contained in:
parent
61de872bf2
commit
07a9789ec5
@ -677,7 +677,7 @@ void GetNextWindowPlacement(wxRect *nextRect, bool *pMaximized, bool *pIconized)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wxString CreateUniqueName()
|
static wxString CreateUniqueName()
|
||||||
{
|
{
|
||||||
static int count = 0;
|
static int count = 0;
|
||||||
return wxDateTime::Now().Format(wxT("%Y-%m-%d %H-%M-%S")) +
|
return wxDateTime::Now().Format(wxT("%Y-%m-%d %H-%M-%S")) +
|
||||||
|
@ -362,7 +362,7 @@ BEGIN_EVENT_TABLE(TrackPanel, wxWindow)
|
|||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
/// Makes a cursor from an XPM, uses CursorId as a fallback.
|
/// Makes a cursor from an XPM, uses CursorId as a fallback.
|
||||||
wxCursor * MakeCursor( int CursorId, const char * pXpm[36], int HotX, int HotY )
|
static wxCursor * MakeCursor( int CursorId, const char * pXpm[36], int HotX, int HotY )
|
||||||
{
|
{
|
||||||
wxCursor * pCursor;
|
wxCursor * pCursor;
|
||||||
|
|
||||||
@ -8748,7 +8748,7 @@ LWSlider * TrackInfo::PanSlider(int trackIndex)
|
|||||||
return mPans[trackIndex - mSliderOffset];
|
return mPans[trackIndex - mSliderOffset];
|
||||||
}
|
}
|
||||||
|
|
||||||
TrackPanel * TrackPanelFactory(wxWindow * parent,
|
static TrackPanel * TrackPanelFactory(wxWindow * parent,
|
||||||
wxWindowID id,
|
wxWindowID id,
|
||||||
const wxPoint & pos,
|
const wxPoint & pos,
|
||||||
const wxSize & size,
|
const wxSize & size,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user