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:
wmayer
2024-04-25 10:46:24 +02:00
parent 52fcdda6cf
commit fada9ed82c

View File

@@ -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) {