Hold only a const version of Settings in Process

This commit is contained in:
Christian Göttsche
2020-10-21 21:26:05 +02:00
committed by cgzones
parent 7109172431
commit 4eb443926f
20 changed files with 28 additions and 28 deletions

View File

@ -165,11 +165,11 @@ ProcessPidColumn Process_pidColumns[] = {
{ .id = 0, .label = NULL },
};
OpenBSDProcess* OpenBSDProcess_new(Settings* settings) {
Process* OpenBSDProcess_new(const Settings* settings) {
OpenBSDProcess* this = xCalloc(sizeof(OpenBSDProcess), 1);
Object_setClass(this, Class(OpenBSDProcess));
Process_init(&this->super, settings);
return this;
return &this->this;
}
void Process_delete(Object* cast) {