1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-02 16:49:41 +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:
RichardAsh1981@gmail.com 2013-09-21 19:34:12 +00:00
parent 61de872bf2
commit 07a9789ec5
2 changed files with 3 additions and 3 deletions

View File

@ -677,7 +677,7 @@ void GetNextWindowPlacement(wxRect *nextRect, bool *pMaximized, bool *pIconized)
}
}
wxString CreateUniqueName()
static wxString CreateUniqueName()
{
static int count = 0;
return wxDateTime::Now().Format(wxT("%Y-%m-%d %H-%M-%S")) +

View File

@ -362,7 +362,7 @@ BEGIN_EVENT_TABLE(TrackPanel, wxWindow)
END_EVENT_TABLE()
/// 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;
@ -8748,7 +8748,7 @@ LWSlider * TrackInfo::PanSlider(int trackIndex)
return mPans[trackIndex - mSliderOffset];
}
TrackPanel * TrackPanelFactory(wxWindow * parent,
static TrackPanel * TrackPanelFactory(wxWindow * parent,
wxWindowID id,
const wxPoint & pos,
const wxSize & size,