[LyX/master] Use bool literals

Yuriy Skalko yuriy.skalko at gmail.com
Sun Nov 1 19:56:31 UTC 2020


commit 6f514da5fd5070300fd2d7e8341715c02bf29f41
Author: Yuriy Skalko <yuriy.skalko at gmail.com>
Date:   Sun Nov 1 13:05:14 2020 +0200

    Use bool literals
---
 src/convert/lyxconvert.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/convert/lyxconvert.cpp b/src/convert/lyxconvert.cpp
index fbe20d3..52ad54b 100644
--- a/src/convert/lyxconvert.cpp
+++ b/src/convert/lyxconvert.cpp
@@ -81,7 +81,7 @@ int main(int argc, char **argv)
 		(char*)"-platform", (char*)"minimal",
 		NULL };
 	int  qtargsc = sizeof(qtargs) / sizeof(qtargs[0]) - 1;
-	bool debug = (1 == 0);
+	bool debug = false;
 
 	while (arg < argc) {
 		if ('-' == argv[arg][0] && !strcmp(argv[arg], "-platform")) {
@@ -91,7 +91,7 @@ int main(int argc, char **argv)
 		} else if ('-' == argv[arg][0] && 't' == argv[arg][1]) {
 			oformat = argv[++arg]; arg++ ;
 		} else if ('-' == argv[arg][0] && 'd' == argv[arg][1]) {
-			debug = (1 == 1); arg++;
+			debug = true; arg++;
 		} else if ('-' == argv[arg][0] && 'V' == argv[arg][1]) {
 			version(myname);
 		} else if ('-' == argv[arg][0]) {


More information about the lyx-cvs mailing list