minor reordering of switch- most common case first
This commit is contained in:
parent
ebb835f24e
commit
e7c71570c7
@ -13,15 +13,15 @@ static inline char *get_filename(char * const c) {
|
|||||||
char *qout = "queries/mranks.sql";
|
char *qout = "queries/mranks.sql";
|
||||||
if (c != NULL) {
|
if (c != NULL) {
|
||||||
switch(*c) {
|
switch(*c) {
|
||||||
|
default:
|
||||||
|
*c = QOVERVIEW;
|
||||||
|
break;
|
||||||
case QMLEADERBOARD:
|
case QMLEADERBOARD:
|
||||||
qout = "queries/mleaderboard-ojoin.sql";
|
qout = "queries/mleaderboard-ojoin.sql";
|
||||||
break;
|
break;
|
||||||
case QRPLAYER:
|
case QRPLAYER:
|
||||||
qout = "queries/rplayers.sql";
|
qout = "queries/rplayers.sql";
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
*c = QOVERVIEW;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return qout;
|
return qout;
|
||||||
|
Loading…
Reference in New Issue
Block a user