Hold only a const version of Settings in ProcessList

This commit is contained in:
Christian Göttsche
2020-10-21 21:26:09 +02:00
committed by cgzones
parent 4eb443926f
commit a3bb7cbe64
8 changed files with 22 additions and 18 deletions

View File

@ -382,7 +382,7 @@ IGNORE_WCASTQUAL_END
void ProcessList_goThroughEntries(ProcessList* this, bool pauseProcessUpdate) {
FreeBSDProcessList* fpl = (FreeBSDProcessList*) this;
Settings* settings = this->settings;
const Settings* settings = this->settings;
bool hideKernelThreads = settings->hideKernelThreads;
bool hideUserlandThreads = settings->hideUserlandThreads;