diff options
author | Jan Wilken Dörrie <jdoerrie@chromium.org> | 2021-01-25 12:20:46 +0100 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-25 20:56:12 +0000 |
commit | c4d2832da77908dc1802d78081c388ce5aa33b9f (patch) | |
tree | c3718410e1381ec168f5e7e4be2abb4458d896aa /cast/sender | |
parent | 7cd7c0c9116bdcb0c43821518c21e9b1436de24e (diff) | |
download | openscreen-c4d2832da77908dc1802d78081c388ce5aa33b9f.tar.gz |
[c++17] Make consistent use of noexcept
This change makes openscreen ready to be compiled with -std=c++17. In
particular, c++17 demands the consistent use of the noexcept keyword
accross declaration and definition.
Bug: chromium:752720
Change-Id: I4715cbc7ccc9576e33ad7dec0ce6c1f6ebd9935b
Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/2643286
Commit-Queue: mark a. foltz <mfoltz@chromium.org>
Reviewed-by: mark a. foltz <mfoltz@chromium.org>
Diffstat (limited to 'cast/sender')
-rw-r--r-- | cast/sender/public/cast_app_discovery_service.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cast/sender/public/cast_app_discovery_service.cc b/cast/sender/public/cast_app_discovery_service.cc index 8299aff4..f2e39239 100644 --- a/cast/sender/public/cast_app_discovery_service.cc +++ b/cast/sender/public/cast_app_discovery_service.cc @@ -12,7 +12,8 @@ CastAppDiscoveryService::Subscription::Subscription( uint32_t id) : discovery_service_(discovery_service), id_(id) {} -CastAppDiscoveryService::Subscription::Subscription(Subscription&& other) +CastAppDiscoveryService::Subscription::Subscription( + Subscription&& other) noexcept : discovery_service_(other.discovery_service_), id_(other.id_) { other.discovery_service_ = nullptr; } |