Fix wrong test: boolean variable is never negative

This has been spotted by clang++.
This commit is contained in:
Jean-Marc Lasgouttes 2014-11-01 16:02:34 +01:00
parent 4436678c97
commit c559f85ccb

View File

@ -878,7 +878,7 @@ void LyXComm::endPipe(int & fd, string const & filename, bool write)
<< '\n' << strerror(errno) << endl;
}
if (FileName(filename).removeFile() < 0) {
if (!FileName(filename).removeFile()) {
lyxerr << "LyXComm: Could not remove pipe " << filename
<< '\n' << strerror(errno) << endl;
}