From e6edd28f11359654e09e482192b55f7cd62d5ded Mon Sep 17 00:00:00 2001 From: Craig Stuart Sapp Date: Wed, 13 Dec 2023 01:03:44 -0800 Subject: [PATCH] Change "and" to "&&". --- src/iohumdrum.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/iohumdrum.cpp b/src/iohumdrum.cpp index 7ff771e1193..043ca7ae02b 100644 --- a/src/iohumdrum.cpp +++ b/src/iohumdrum.cpp @@ -3838,7 +3838,7 @@ void HumdrumInput::createUnpublishedSource(pugi::xml_node sourceDesc) pugi::xml_node line = lineGroup.append_child("l"); // does not take @analog, so use @type instead (says Perry) line.append_attribute("type") = "humdrum:SMA"; - if (!acknowledgment.language.empty() and languageForAll.empty()) { + if (!acknowledgment.language.empty() && languageForAll.empty()) { line.append_attribute("xml:lang") = acknowledgment.language.c_str(); } appendText(line, acknowledgment.value); @@ -4747,7 +4747,7 @@ void HumdrumInput::createSimpleTitleElement() firstLang = titles[bestTitleIdx].language; } int bestMovementNameIdx = getBestItem(movementNames, std::string()); - if (bestTitleIdx < 0 && bestMovementNameIdx >= 0 and !movementNames[bestMovementNameIdx].language.empty()) { + if ((bestTitleIdx < 0) && (bestMovementNameIdx >= 0) && !movementNames[bestMovementNameIdx].language.empty()) { firstLang = movementNames[bestMovementNameIdx].language; } @@ -4968,7 +4968,7 @@ std::map> HumdrumInput::getAllRef bool HumdrumInput::isStandardHumdrumKey(const std::string &key) { - if (key[0] == 'X' and key.size() == 3) { + if ((key[0] == 'X') && (key.size() == 3)) { // translated title return true; }