mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
kdecore: const-ify KThreadPool::setMaxThreadCount() argument
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
941a85507b
commit
e75bf1747a
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue