Commit 52bb9bcf authored by Raul Tambre's avatar Raul Tambre Committed by Commit Bot

registry: Add missing noexcept specifier

Seems to be required in C++17 mode.

../../base/win/registry.cc(109,9): error: 'RegKey' is missing exception specification 'noexcept' [-Werror,-Wmicrosoft-exception-spec]
RegKey::RegKey(RegKey&& other)
        ^
                               noexcept
../..\base/win/registry.h(41,3): note: previous declaration is here
  RegKey(RegKey&& other) noexcept;
  ^

Bug: 752720
Change-Id: I3d98b80ea3c9831e3a4ba5f2ca6e8f69800f1d80
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2089840
Auto-Submit: Raul Tambre <raul@tambre.ee>
Reviewed-by: default avatarBruce Dawson <brucedawson@chromium.org>
Commit-Queue: Raul Tambre <raul@tambre.ee>
Cr-Commit-Position: refs/heads/master@{#748041}
parent db157ce7
...@@ -106,7 +106,7 @@ RegKey::RegKey(HKEY rootkey, const wchar_t* subkey, REGSAM access) { ...@@ -106,7 +106,7 @@ RegKey::RegKey(HKEY rootkey, const wchar_t* subkey, REGSAM access) {
} }
} }
RegKey::RegKey(RegKey&& other) RegKey::RegKey(RegKey&& other) noexcept
: key_(other.key_), : key_(other.key_),
wow64access_(other.wow64access_), wow64access_(other.wow64access_),
key_watcher_(std::move(other.key_watcher_)) { key_watcher_(std::move(other.key_watcher_)) {
......
Markdown is supported
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