Skip to content

Commit

Permalink
Change "and" to "&&".
Browse files Browse the repository at this point in the history
  • Loading branch information
craigsapp committed Dec 13, 2023
1 parent 32e5532 commit e6edd28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/iohumdrum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3838,7 +3838,7 @@ void HumdrumInput::createUnpublishedSource(pugi::xml_node sourceDesc)
pugi::xml_node line = lineGroup.append_child("l");
// <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);
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -4968,7 +4968,7 @@ std::map<std::string, std::vector<HumdrumReferenceItem>> 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;
}
Expand Down

0 comments on commit e6edd28

Please sign in to comment.