TD: Fix compiler warning
Warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare]
This commit is contained in:
@@ -676,7 +676,7 @@ void TaskProjGroup::setupViewCheckboxes(bool addConnections)
|
||||
const char *viewStr = viewChkIndexToCStr(i);
|
||||
|
||||
if (!multiView) {
|
||||
box->setCheckState(viewStr == "Front" ? Qt::Checked : Qt::Unchecked);
|
||||
box->setCheckState(strcmp(viewStr, "Front") == 0 ? Qt::Checked : Qt::Unchecked);
|
||||
}
|
||||
|
||||
if (addConnections) {
|
||||
|
||||
Reference in New Issue
Block a user