mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
mark all local functions as static
This commit is contained in:
@ -183,7 +183,7 @@ static int CompareGameListItems(const GameListItem* iso1, const GameListItem* is
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool operator < (const GameListItem &one, const GameListItem &other)
|
||||
static bool operator < (const GameListItem &one, const GameListItem &other)
|
||||
{
|
||||
return CompareGameListItems(&one, &other) < 0;
|
||||
}
|
||||
@ -394,7 +394,7 @@ void CGameListCtrl::Update()
|
||||
SetFocus();
|
||||
}
|
||||
|
||||
wxString NiceSizeFormat(u64 _size)
|
||||
static wxString NiceSizeFormat(u64 _size)
|
||||
{
|
||||
// Return a pretty filesize string from byte count.
|
||||
// e.g. 1134278 -> "1.08 MiB"
|
||||
@ -472,7 +472,7 @@ void CGameListCtrl::InsertItemInReportView(long _Index)
|
||||
SetItemData(_Index, ItemIndex);
|
||||
}
|
||||
|
||||
wxColour blend50(const wxColour& c1, const wxColour& c2)
|
||||
static wxColour blend50(const wxColour& c1, const wxColour& c2)
|
||||
{
|
||||
unsigned char r,g,b,a;
|
||||
r = c1.Red()/2 + c2.Red()/2;
|
||||
@ -658,7 +658,7 @@ const GameListItem *CGameListCtrl::GetISO(size_t index) const
|
||||
}
|
||||
|
||||
CGameListCtrl *caller;
|
||||
int wxCALLBACK wxListCompare(wxIntPtr item1, wxIntPtr item2, wxIntPtr sortData)
|
||||
static int wxCALLBACK wxListCompare(wxIntPtr item1, wxIntPtr item2, wxIntPtr sortData)
|
||||
{
|
||||
// return 1 if item1 > item2
|
||||
// return -1 if item1 < item2
|
||||
|
Reference in New Issue
Block a user