mirror of
https://github.com/xzeldon/htop.git
synced 2025-04-20 08:45:45 +03:00
Mark argument in Object_isA const
This commit is contained in:
parent
cdd3913647
commit
577984d875
2
Object.c
2
Object.c
@ -14,7 +14,7 @@ ObjectClass Object_class = {
|
|||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
|
|
||||||
bool Object_isA(Object* o, const ObjectClass* klass) {
|
bool Object_isA(const Object* o, const ObjectClass* klass) {
|
||||||
if (!o)
|
if (!o)
|
||||||
return false;
|
return false;
|
||||||
const ObjectClass* type = o->klass;
|
const ObjectClass* type = o->klass;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user