mirror of https://github.com/davisking/dlib.git
fixed warning and typo in comment
This commit is contained in:
parent
ffb4434240
commit
24efbdbc52
|
@ -260,9 +260,7 @@ namespace dlib
|
||||||
// them.
|
// them.
|
||||||
#if defined(MATLAB_MEX_FILE)
|
#if defined(MATLAB_MEX_FILE)
|
||||||
return;
|
return;
|
||||||
#endif
|
#else
|
||||||
|
|
||||||
|
|
||||||
static bool is_first_fatal_error = true;
|
static bool is_first_fatal_error = true;
|
||||||
if (is_first_fatal_error == false)
|
if (is_first_fatal_error == false)
|
||||||
{
|
{
|
||||||
|
@ -292,6 +290,7 @@ namespace dlib
|
||||||
std::set_terminate(&dlib_fatal_error_terminate);
|
std::set_terminate(&dlib_fatal_error_terminate);
|
||||||
}
|
}
|
||||||
is_first_fatal_error = false;
|
is_first_fatal_error = false;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -93,7 +93,7 @@ namespace dlib
|
||||||
This is a tool for spawning a subprocess and communicating with it through
|
This is a tool for spawning a subprocess and communicating with it through
|
||||||
that processes standard input, output, and error. Here is an example:
|
that processes standard input, output, and error. Here is an example:
|
||||||
|
|
||||||
subprocess_stream s("/usr/bin/echo")
|
subprocess_stream s("/usr/bin/echo");
|
||||||
s << "echo me this!";
|
s << "echo me this!";
|
||||||
string line;
|
string line;
|
||||||
getline(s, line);
|
getline(s, line);
|
||||||
|
|
Loading…
Reference in New Issue