]> git.lyx.org Git - features.git/commitdiff
Fix wrong test: boolean variable is never negative
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 1 Nov 2014 15:02:34 +0000 (16:02 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 5 Nov 2014 17:23:32 +0000 (18:23 +0100)
This has been spotted by clang++.

src/Server.cpp
status.21x

index 1de758a5f46bd1b9507c9e2ad9b213d9a015c550..b7fa35ee13fbeee11d1a8676a73f6f31fada827c 100644 (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;
        }
index 114784414da8ff4bfefd7e270c5d098b1cd8573b..6cc1f1266557706ac3c5102700448122f004e973 100644 (file)
@@ -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