kdecore: const-ify KThreadPool::setMaxThreadCount() argument

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-04-19 22:59:09 +03:00
parent 941a85507b
commit e75bf1747a
2 changed files with 2 additions and 2 deletions

View file

@ -155,7 +155,7 @@ int KThreadPool::maxThreadCount() const
return d->maxthreads;
}
void KThreadPool::setMaxThreadCount(int maxthreads)
void KThreadPool::setMaxThreadCount(const int maxthreads)
{
if (Q_UNLIKELY(maxthreads < 1)) {
kWarning() << "invalid max threads count" << maxthreads;

View file

@ -45,7 +45,7 @@ public:
void waitForDone(const int timeout = 30000);
int maxThreadCount() const;
void setMaxThreadCount(int maxthreads);
void setMaxThreadCount(const int maxthreads);
int activeThreadCount() const;