[TD] remove unnecessary Boolean comparisons
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user