]> git.lyx.org Git - lyx.git/blobdiff - src/support/ForkedCalls.cpp
thinko
[lyx.git] / src / support / ForkedCalls.cpp
index 56f7bc9d711e504d99b3efe5c0cb633101a7101d..1318bd3ec2910156eb548e47f79c3711eb65261a 100644 (file)
@@ -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
 
 
 /////////////////////////////////////////////////////////////////////