From 02a22417278f8dffcce65a170f87f18661df41af Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Sat, 1 Nov 2014 16:02:34 +0100 Subject: [PATCH] Fix wrong test: boolean variable is never negative This has been spotted by clang++. --- src/Server.cpp | 2 +- status.21x | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Server.cpp b/src/Server.cpp index 1de758a5f4..b7fa35ee13 100644 --- a/src/Server.cpp +++ b/src/Server.cpp @@ -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; } diff --git a/status.21x b/status.21x index 114784414d..6cc1f12665 100644 --- a/status.21x +++ b/status.21x @@ -70,7 +70,7 @@ What's new - Fix export of documents that use the LaTeX-packages mhchem and wasysym (bug 9266). - + - Remove unnecessary preamble code in LaTeX export of documents using the class REVTeX 4.1 file (bug 4625). @@ -96,6 +96,7 @@ What's new * INTERNALS +- Fix wrong test in LyX server. * DOCUMENTATION AND LOCALIZATION -- 2.39.5