summaryrefslogtreecommitdiff
path: root/docshell
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2018-08-22 14:08:55 +0300
committerJustOff <Off.Just.Off@gmail.com>2018-08-22 14:08:55 +0300
commit0ea5fdb86ce4f1a435614a04367bce0cedf38dd9 (patch)
tree2e62e0a144917ae52921dce3090f398e09ff58e1 /docshell
parentf111f7ab9efdc4f68e8605c66b46b79b8f791bc9 (diff)
downloaduxp-0ea5fdb86ce4f1a435614a04367bce0cedf38dd9.tar.gz
Explicitly specify parentheses in a mixed boolean expression in ShouldAddToSessionHistory()
Diffstat (limited to 'docshell')
-rw-r--r--docshell/base/nsDocShell.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp
index a3d42c6791..f4840297d2 100644
--- a/docshell/base/nsDocShell.cpp
+++ b/docshell/base/nsDocShell.cpp
@@ -12282,8 +12282,8 @@ nsDocShell::ShouldAddToSessionHistory(nsIURI* aURI)
}
if (buf.EqualsLiteral("blank") || buf.EqualsLiteral("logopage") ||
- buf.EqualsLiteral("newtab") &&
- !Preferences::GetBool("browser.newtabpage.add_to_session_history", false)) {
+ (buf.EqualsLiteral("newtab") &&
+ !Preferences::GetBool("browser.newtabpage.add_to_session_history", false))) {
return false;
}
}