Commit 35244bec authored by Marius Pa's avatar Marius Pa
Browse files

dolphintabwidget.cpp piority of boolean operators

Fix PVS-Studio issue "warning: V648 Priority of the '&&' operation is higher than that of the '||' operation.".
Fix clangd issue.
parent b1eb12e0
Pipeline #201791 passed with stage
in 12 minutes and 21 seconds
......@@ -490,13 +490,13 @@ QPair<int, bool> DolphinTabWidget::indexByUrl(const QUrl& url, ChildUrlBehavior
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() ||
childUrlBehavior == ReturnIndexForOpenedParentAlso && tabPage->secondaryViewContainer()->url().isParentOf(url))) {
(childUrlBehavior == ReturnIndexForOpenedParentAlso && tabPage->secondaryViewContainer()->url().isParentOf(url)))) {
return qMakePair(i, false);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment