fix Warning
This commit is contained in:
1 parent
593c221d23
commit
8345470273
316 files changed
+1246
-929
No files matched your search
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include "service.h"
|
||||
#include <utility>
|
||||
|
||||
#include <QtCore/QProcess>
|
||||
|
||||
@@ -83,7 +84,7 @@ ServiceManagement::ServiceProcess *ServiceManagement::Service::toServiceProcess(
|
||||
|
||||
ServiceManagement::ServiceProcess *ServiceManagement::Service::procFromPid(qint64 pid)
|
||||
{
|
||||
for (ServiceProcess *currentProc : qAsConst(m_procs))
|
||||
for (ServiceProcess *currentProc : std::as_const(m_procs))
|
||||
{
|
||||
if (currentProc->usablePid() == pid)
|
||||
return currentProc;
|
||||
@@ -93,7 +94,7 @@ ServiceManagement::ServiceProcess *ServiceManagement::Service::procFromPid(qint6
|
||||
|
||||
ServiceManagement::ServiceProcess *ServiceManagement::Service::procFromServiceProcId(int32_t id)
|
||||
{
|
||||
for (ServiceProcess *currentProc : qAsConst(m_procs))
|
||||
for (ServiceProcess *currentProc : std::as_const(m_procs))
|
||||
{
|
||||
if (currentProc->serviceProcessId() == id)
|
||||
return currentProc;
|
||||
@@ -103,13 +104,13 @@ ServiceManagement::ServiceProcess *ServiceManagement::Service::procFromServicePr
|
||||
|
||||
void ServiceManagement::Service::stopAllProcs()
|
||||
{
|
||||
for (ServiceProcess *currentProc : qAsConst(m_procs))
|
||||
for (ServiceProcess *currentProc : std::as_const(m_procs))
|
||||
currentProc->terminate();
|
||||
}
|
||||
|
||||
void ServiceManagement::Service::waitForStopped()
|
||||
{
|
||||
for (ServiceProcess *currentProc : qAsConst(m_procs))
|
||||
for (ServiceProcess *currentProc : std::as_const(m_procs))
|
||||
currentProc->waitForFinished(5000);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user