[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-cvs
Subject:    [LyX/master] Use || instead of or operator
From:       Jean-Marc Lasgouttes <lasgouttes () lyx ! org>
Date:       2019-02-28 10:59:37
Message-ID: 20190228105937.526FE2801BD () lyx ! lyx ! org
[Download RAW message or body]

commit 32d6396f88da6e8537e45a2acaa42cdf361df488
Author: Jean-Marc Lasgouttes <lasgouttes@lyx.org>
Date:   Thu Feb 28 12:03:34 2019 +0100

    Use || instead of or operator
    
    It is more consistent and visual studio seems to dislike it anyway.
---
 src/BufferParams.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp
index 60bfa3a..fc4ac4a 100644
--- a/src/BufferParams.cpp
+++ b/src/BufferParams.cpp
@@ -3290,7 +3290,7 @@ void BufferParams::writeEncodingPreamble(otexstream & os,
 			break;
 		}
 	}
-	if (inputenc == "default" or features.isRequired("japanese")) {
+	if (inputenc == "default" || features.isRequired("japanese")) {
 		// don't default to [utf8]{inputenc} with TeXLive >= 18
 		os << "\\ifdefined\\UseRawInputEncoding\n";
 		os << "  \\UseRawInputEncoding\\fi\n";

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic