X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2FForkedCalls.cpp;h=1318bd3ec2910156eb548e47f79c3711eb65261a;hb=037b1e14789223c89e88e8bd74baffa4d0956571;hp=56f7bc9d711e504d99b3efe5c0cb633101a7101d;hpb=db58111360d68f76c5797069a7b80967447d1379;p=lyx.git diff --git a/src/support/ForkedCalls.cpp b/src/support/ForkedCalls.cpp index 56f7bc9d71..1318bd3ec2 100644 --- a/src/support/ForkedCalls.cpp +++ b/src/support/ForkedCalls.cpp @@ -94,7 +94,7 @@ private: pid_t pid_; }; -} // namespace anon +} // namespace ///////////////////////////////////////////////////////////////////// @@ -129,7 +129,7 @@ int ForkedProcess::run(Starttype type) if (pid_ == 0) //we also do this in fork(), too, but maybe someone will try //to bypass that - IAmAChild = true; + IAmAChild = true; return retval_; } @@ -374,7 +374,7 @@ int ForkedCall::generateChild() argv.push_back(&*it); prev = *it; } - argv.push_back(0); + argv.push_back(nullptr); // Debug output. if (lyxerr.debugging(Debug::FILES)) { @@ -403,12 +403,12 @@ int ForkedCall::generateChild() pid_t cpid = -1; - STARTUPINFO startup; - PROCESS_INFORMATION process; + STARTUPINFO startup; + PROCESS_INFORMATION process; memset(&startup, 0, sizeof(STARTUPINFO)); memset(&process, 0, sizeof(PROCESS_INFORMATION)); - + startup.cb = sizeof(STARTUPINFO); if (CreateProcess(0, (LPSTR)line.c_str(), 0, 0, FALSE, @@ -513,8 +513,7 @@ bool running() return running_; } -} // namespace ForkedCallsQueue - +} // namespace ForkedCallQueue /////////////////////////////////////////////////////////////////////