Coding - Apply more flags from Clang-tidy (#977)

- Refactor boolean expressions and improve code readability across multiple files
- Simplified boolean expressions by removing unnecessary comparisons to true/false.
- Replaced explicit boolean checks with direct variable usage 

Used flags:
readability-static-accessed-through-instance
readability-simplify-boolean-expr
performance-for-range-copy
performance-move-const-arg
misc-unused-parameters
misc-redundant-expression
This commit is contained in:
Pasukhin Dmitry
2026-01-03 12:18:59 +00:00
committed by GitHub
parent 825b0bd782
commit 6c24544fe1
582 changed files with 1535 additions and 3246 deletions
@@ -146,7 +146,7 @@ bool XmlMFunction_ScopeDriver::Paste(const XmlObjMgt_Persistent& theSource
continue;
}
TCollection_AsciiString anEntry;
if (XmlObjMgt::GetTagEntryString(aValueStr, anEntry) == false)
if (!XmlObjMgt::GetTagEntryString(aValueStr, anEntry))
{
TCollection_ExtendedString aMessage =
TCollection_ExtendedString("Cannot retrieve reference from \"") + aValueStr + '\"';
@@ -172,7 +172,7 @@ bool XmlMFunction_ScopeDriver::Paste(const XmlObjMgt_Persistent& theSource
return false;
}
TCollection_AsciiString anEntry;
if (XmlObjMgt::GetTagEntryString(aValueStr, anEntry) == false)
if (!XmlObjMgt::GetTagEntryString(aValueStr, anEntry))
{
TCollection_ExtendedString aMessage =
TCollection_ExtendedString("Cannot retrieve reference from \"") + aValueStr + '\"';