Convert integer literal to a bool literal.
This commit is contained in:
parent
1249e1f2fc
commit
587d7aadd4
|
@ -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)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 "
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user