Fix PVS-Studio issue "warning: V648 Priority of the '&&' operation is higher than that of the '||' operation.".
Fix clangd issue.
do {
const auto tabPage = tabPageAt(i);
if (tabPage->primaryViewContainer()->url() == url ||
do {
const auto tabPage = tabPageAt(i);
if (tabPage->primaryViewContainer()->url() == url ||
- childUrlBehavior == ReturnIndexForOpenedParentAlso && tabPage->primaryViewContainer()->url().isParentOf(url)) {
+ (childUrlBehavior == ReturnIndexForOpenedParentAlso && tabPage->primaryViewContainer()->url().isParentOf(url))) {
return qMakePair(i, true);
}
if (tabPage->splitViewEnabled() &&
(url == tabPage->secondaryViewContainer()->url() ||
return qMakePair(i, true);
}
if (tabPage->splitViewEnabled() &&
(url == tabPage->secondaryViewContainer()->url() ||
- childUrlBehavior == ReturnIndexForOpenedParentAlso && tabPage->secondaryViewContainer()->url().isParentOf(url))) {
+ (childUrlBehavior == ReturnIndexForOpenedParentAlso && tabPage->secondaryViewContainer()->url().isParentOf(url)))) {
return qMakePair(i, false);
}
return qMakePair(i, false);
}