Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
windows:mingw:win64
mingw64-kinit
0018-Fix-gcc-9-warnings.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0018-Fix-gcc-9-warnings.patch of Package mingw64-kinit
From 91bd678a03a7de9c422dc25a14421e56dae46731 Mon Sep 17 00:00:00 2001 From: Ralf Habacker <ralf.habacker@freenet.de> Date: Fri, 23 Jul 2021 10:58:20 +0200 Subject: [PATCH 18/18] Fix gcc 9 warnings --- src/kdeinit/kinit_win.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/kdeinit/kinit_win.cpp b/src/kdeinit/kinit_win.cpp index 7ce1558..9d50b72 100644 --- a/src/kdeinit/kinit_win.cpp +++ b/src/kdeinit/kinit_win.cpp @@ -74,7 +74,7 @@ QList<QProcess *> startedProcesses; PSID copySid(PSID from) { if (!from) { - return 0; + return nullptr; } int sidLength = GetLengthSid(from); PSID to = (PSID) malloc(sidLength); @@ -184,7 +184,7 @@ static PSID getProcessOwner(HANDLE hProcess) } } #endif - return 0; + return nullptr; } /** @@ -226,7 +226,7 @@ static QString installRoot() class ProcessListEntry { public: - ProcessListEntry(HANDLE _handle, QString _path, int _pid, PSID _owner = 0) + ProcessListEntry(HANDLE _handle, QString _path, int _pid, PSID _owner = nullptr) { QFileInfo p(_path); path = p.absolutePath().replace("/", "\\").toLower(); @@ -278,7 +278,7 @@ public: collect process @param userSid sid of user for which processes should be collected or 0 for all processes */ - ProcessList(PSID userSid = 0); + ProcessList(PSID userSid = nullptr); ~ProcessList(); @@ -344,7 +344,7 @@ void ProcessList::init() QString name = getProcessName(pe32.th32ProcessID); #ifndef _WIN32_WCE PSID sid = getProcessOwner(hProcess); - if (!sid || m_userId && !EqualSid(m_userId, sid)) { + if (!sid || (m_userId && !EqualSid(m_userId, sid))) { freeSid(sid); continue; } -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor