mark all local functions as static

This commit is contained in:
degasus
2014-07-08 14:29:26 +02:00
parent 3ff1c538ee
commit 22e1aa5bb4
93 changed files with 260 additions and 251 deletions

View File

@ -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