summaryrefslogtreecommitdiff
path: root/chromium/url
diff options
context:
space:
mode:
authorPeter Varga <pvarga@inf.u-szeged.hu>2021-11-24 17:22:36 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-11-24 16:44:36 +0000
commit5d8edf95dd56d2dbbe431029684bb109df052f9b (patch)
tree93e22be9af0165a7f41c677c19e27998bb7b8156 /chromium/url
parent74165fea5d5db951faa9774bece6db3f0fb06404 (diff)
downloadqtwebengine-chromium-5d8edf95dd56d2dbbe431029684bb109df052f9b.tar.gz
[Backport] url::Origin: Add noexcept to align the declarations
The declarations of the move ctor and operator have "noexcept", but their impls don't have noexcept. That causes a compile failure on C++17 mode. Bug: 752720 Test: compile Change-Id: I6d7d4f507e24f4885482633d924cf0290a7d7265 Review-URL: https://chromium-review.googlesource.com/c/chromium/src/+/3128441 Cr-Commit-Position: refs/heads/main@{#916506} Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/url')
-rw-r--r--chromium/url/origin.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chromium/url/origin.cc b/chromium/url/origin.cc
index 445fab263f1..6bcf0113476 100644
--- a/chromium/url/origin.cc
+++ b/chromium/url/origin.cc
@@ -439,11 +439,11 @@ Origin::Nonce& Origin::Nonce::operator=(const Origin::Nonce& other) {
}
// Moving a nonce does NOT trigger lazy-generation of the token.
-Origin::Nonce::Nonce(Origin::Nonce&& other) : token_(other.token_) {
+Origin::Nonce::Nonce(Origin::Nonce&& other) noexcept : token_(other.token_) {
other.token_ = base::UnguessableToken(); // Reset |other|.
}
-Origin::Nonce& Origin::Nonce::operator=(Origin::Nonce&& other) {
+Origin::Nonce& Origin::Nonce::operator=(Origin::Nonce&& other) noexcept {
token_ = other.token_;
other.token_ = base::UnguessableToken(); // Reset |other|.
return *this;