commit 633e0b0142fa07255af0fce62e39675248d22317
Author: Thibaut Cuvelier <[email protected]>
Date: Wed Oct 22 16:48:35 2025 +0200
Slight code modernisation in ForkedCalls.cpp.
`nullptr` instead of `0` for pointers.
---
src/support/ForkedCalls.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/support/ForkedCalls.cpp b/src/support/ForkedCalls.cpp
index 6113080a3b..054290d0dd 100644
--- a/src/support/ForkedCalls.cpp
+++ b/src/support/ForkedCalls.cpp
@@ -411,8 +411,10 @@ int ForkedCall::generateChild()
startup.cb = sizeof(STARTUPINFO);
- if (CreateProcess(0, (LPSTR)command_.c_str(), 0, 0, FALSE,
- CREATE_NO_WINDOW, 0, 0, &startup, &process)) {
+ if (CreateProcess(nullptr, LPSTR(command_.c_str()),
+ nullptr, nullptr, FALSE,
+ CREATE_NO_WINDOW, nullptr, nullptr,
+ &startup, &process)) {
CloseHandle(process.hThread);
cpid = (pid_t)process.hProcess;
}
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs