diff options
| author | Marius P <[email protected]> | 2022-07-09 15:40:28 +0300 |
|---|---|---|
| committer | Marius P <[email protected]> | 2022-07-09 15:40:28 +0300 |
| commit | 35244bec7574b1e95fc0c7d51b96bf634673b391 (patch) | |
| tree | 7ab21900f307e99861784bbbabaf41282610e9cc /src | |
| parent | b1eb12e03ac0206c463c95b207209f5e181f3d71 (diff) | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphintabwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dolphintabwidget.cpp b/src/dolphintabwidget.cpp index de7a18db3..8eac9519d 100644 --- a/src/dolphintabwidget.cpp +++ b/src/dolphintabwidget.cpp @@ -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); } |
