]> git.lyx.org Git - lyx.git/blobdiff - src/support/ForkedCalls.cpp
Provide option to prevent unnecessary font loading.
[lyx.git] / src / support / ForkedCalls.cpp
index 56f7bc9d711e504d99b3efe5c0cb633101a7101d..eb07314fe50f897a063d1074b870ed4574a67dfe 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
 
 
 /////////////////////////////////////////////////////////////////////
@@ -662,7 +661,7 @@ void handleCompletedProcesses()
                        forkedCalls.erase(it);
                        actCall->emitSignal();
 
-                       /* start all over: emiting the signal can result
+                       /* start all over: emitting the signal can result
                         * in changing the list (Ab)
                         */
                        it = forkedCalls.begin();