[TD] remove unnecessary Boolean comparisons

This commit is contained in:
Uwe
2022-06-15 04:09:17 +02:00
parent bbcc8b2c5c
commit a4a8acd445
2 changed files with 3 additions and 3 deletions

View File

@@ -564,7 +564,7 @@ void QGIViewPart::drawViewPart()
item->setWidth(lineWidth);
item->setNormalColor(edgeColor);
item->setStyle(Qt::SolidLine);
if ((*itGeom)->cosmetic == true) {
if ((*itGeom)->cosmetic) {
int source = (*itGeom)->source();
if (source == COSMETICEDGE) {
std::string cTag = (*itGeom)->getCosmeticTag();

View File

@@ -745,8 +745,8 @@ bool MRichTextEdit::hasMultipleSizes(void)
QString asQS = QString::number(currSize,'f',2);
foundSizes.push_back(asQS);
auto ret = countMap.insert(std::pair<QString, int>(asQS, 1));
if (ret.second == false) { //already have this size
ret.first->second++; //bump count
if (!ret.second) { //already have this size
ret.first->second++; //bump count
}
}
if (countMap.size() > 1) {