mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Use bool literals
This commit is contained in:
parent
9c47e736f8
commit
6f514da5fd
@ -81,7 +81,7 @@ int main(int argc, char **argv)
|
|||||||
(char*)"-platform", (char*)"minimal",
|
(char*)"-platform", (char*)"minimal",
|
||||||
NULL };
|
NULL };
|
||||||
int qtargsc = sizeof(qtargs) / sizeof(qtargs[0]) - 1;
|
int qtargsc = sizeof(qtargs) / sizeof(qtargs[0]) - 1;
|
||||||
bool debug = (1 == 0);
|
bool debug = false;
|
||||||
|
|
||||||
while (arg < argc) {
|
while (arg < argc) {
|
||||||
if ('-' == argv[arg][0] && !strcmp(argv[arg], "-platform")) {
|
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]) {
|
} else if ('-' == argv[arg][0] && 't' == argv[arg][1]) {
|
||||||
oformat = argv[++arg]; arg++ ;
|
oformat = argv[++arg]; arg++ ;
|
||||||
} else if ('-' == argv[arg][0] && 'd' == argv[arg][1]) {
|
} 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]) {
|
} else if ('-' == argv[arg][0] && 'V' == argv[arg][1]) {
|
||||||
version(myname);
|
version(myname);
|
||||||
} else if ('-' == argv[arg][0]) {
|
} else if ('-' == argv[arg][0]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user