Codechange: Remove CDECL from filter functions. (#12578)
These functions are not passed to qsort()...
This commit is contained in:
@@ -93,7 +93,7 @@ struct SignList {
|
||||
}
|
||||
|
||||
/** Filter sign list by sign name */
|
||||
static bool CDECL SignNameFilter(const Sign * const *a, StringFilter &filter)
|
||||
static bool SignNameFilter(const Sign * const *a, StringFilter &filter)
|
||||
{
|
||||
/* Same performance benefit as above for sorting. */
|
||||
const std::string &a_name = (*a)->name.empty() ? SignList::default_name : (*a)->name;
|
||||
@@ -104,14 +104,14 @@ struct SignList {
|
||||
}
|
||||
|
||||
/** Filter sign list excluding OWNER_DEITY */
|
||||
static bool CDECL OwnerDeityFilter(const Sign * const *a, StringFilter &)
|
||||
static bool OwnerDeityFilter(const Sign * const *a, StringFilter &)
|
||||
{
|
||||
/* You should never be able to edit signs of owner DEITY */
|
||||
return (*a)->owner != OWNER_DEITY;
|
||||
}
|
||||
|
||||
/** Filter sign list by owner */
|
||||
static bool CDECL OwnerVisibilityFilter(const Sign * const *a, StringFilter &)
|
||||
static bool OwnerVisibilityFilter(const Sign * const *a, StringFilter &)
|
||||
{
|
||||
assert(!HasBit(_display_opt, DO_SHOW_COMPETITOR_SIGNS));
|
||||
/* Hide sign if non-own signs are hidden in the viewport */
|
||||
|
||||
Reference in New Issue
Block a user