mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
vector<string> -> vector<pid_t>
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6968 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
004eee4d8e
commit
08455f2408
@ -1,3 +1,8 @@
|
||||
|
||||
2003-05-13 André Pönitz <poenitz@gmx.net>
|
||||
|
||||
* ControlForks.[Ch]: use vector<pid_t> instead of strings
|
||||
|
||||
2003-05-14 Rob Lahaye <lahaye@users.sourceforge.net>
|
||||
|
||||
* ControlErrorList.C (clearParams): replace string::clear by
|
||||
|
@ -31,21 +31,19 @@ ControlForks::ControlForks(LyXView & lv, Dialogs & d)
|
||||
|
||||
vector<pid_t> const ControlForks::getPIDs() const
|
||||
{
|
||||
ForkedcallsController const & fcc = ForkedcallsController::get();
|
||||
return fcc.getPIDs();
|
||||
return ForkedcallsController::get().getPIDs();
|
||||
}
|
||||
|
||||
|
||||
string const ControlForks::getCommand(pid_t pid) const
|
||||
{
|
||||
ForkedcallsController const & fcc = ForkedcallsController::get();
|
||||
return fcc.getCommand(pid);
|
||||
return ForkedcallsController::get().getCommand(pid);
|
||||
}
|
||||
|
||||
|
||||
void ControlForks::kill(pid_t pid)
|
||||
{
|
||||
pids_.push_back(tostr(pid));
|
||||
pids_.push_back(pid);
|
||||
}
|
||||
|
||||
|
||||
@ -60,9 +58,9 @@ void ControlForks::apply()
|
||||
if (pids_.empty())
|
||||
return;
|
||||
|
||||
for (vector<string>::const_iterator it = pids_.begin();
|
||||
for (vector<pid_t>::const_iterator it = pids_.begin();
|
||||
it != pids_.end(); ++it) {
|
||||
lyxfunc().dispatch(FuncRequest(LFUN_FORKS_KILL, *it));
|
||||
lyxfunc().dispatch(FuncRequest(LFUN_FORKS_KILL, tostr(*it)));
|
||||
}
|
||||
|
||||
pids_.clear();
|
||||
|
@ -44,7 +44,7 @@ private:
|
||||
/// Connection to the ForkedcallsController signal
|
||||
boost::signals::connection childrenChanged_;
|
||||
/// The list of PIDs to kill
|
||||
std::vector<string> pids_;
|
||||
std::vector<pid_t> pids_;
|
||||
};
|
||||
|
||||
#endif // CONTROLFORKS_H
|
||||
|
Loading…
Reference in New Issue
Block a user