Convert integer literal to a bool literal.

This commit is contained in:
Roman Telezhynskyi 2024-02-21 11:58:57 +02:00
parent 1249e1f2fc
commit 587d7aadd4
3 changed files with 3 additions and 3 deletions

View File

@ -337,7 +337,7 @@ __extension__
m_eOprtAsct(oaNONE), m_eOprtAsct(oaNONE),
m_iCode(cmUNKNOWN), m_iCode(cmUNKNOWN),
m_iType(tpVOID), m_iType(tpVOID),
m_bAllowOpti(0) m_bAllowOpti(false)
{ {
} }

View File

@ -1200,7 +1200,7 @@ auto QmuParserTester::ThrowTest(const QString &a_str, int a_iErrc, bool a_bFail)
} }
// if a_bFail==false no exception is expected // if a_bFail==false no exception is expected
bool const bRet((a_bFail == false) ? 0 : 1); bool const bRet((a_bFail == false) ? false : true);
if (bRet == 1) if (bRet == 1)
{ {
qWarning() << "\n " qWarning() << "\n "

View File

@ -533,7 +533,7 @@ auto dxfRW::writeVport(DRW_Vport *ent) -> bool
writer->writeString(348, "10020"); writer->writeString(348, "10020");
writer->writeInt16(60, ent->gridBehavior); // v2007 undocummented see DRW_Vport class writer->writeInt16(60, ent->gridBehavior); // v2007 undocummented see DRW_Vport class
writer->writeInt16(61, 5); writer->writeInt16(61, 5);
writer->writeBool(292, 1); writer->writeBool(292, true);
writer->writeInt16(282, 1); writer->writeInt16(282, 1);
writer->writeDouble(141, 0.0); writer->writeDouble(141, 0.0);
writer->writeDouble(142, 0.0); writer->writeDouble(142, 0.0);