library.h: Improved const correctness of some function arguments.

This commit is contained in:
orbitcowboy 2018-05-24 17:06:20 +02:00
parent 4cb57ebc30
commit d013cb2f0d
1 changed files with 4 additions and 4 deletions

View File

@ -126,18 +126,18 @@ public:
}
/** is allocation type memory? */
static bool ismemory(int id) {
static bool ismemory(const int id) {
return ((id > 0) && ((id & 1) == 0));
}
static bool ismemory(const AllocFunc* func) {
static bool ismemory(const AllocFunc* const func) {
return ((func->groupId > 0) && ((func->groupId & 1) == 0));
}
/** is allocation type resource? */
static bool isresource(int id) {
static bool isresource(const int id) {
return ((id > 0) && ((id & 1) == 1));
}
static bool isresource(const AllocFunc* func) {
static bool isresource(const AllocFunc* const func) {
return ((func->groupId > 0) && ((func->groupId & 1) == 1));
}