summaryrefslogtreecommitdiffstats
path: root/logd
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2018-09-25 11:16:22 -0700
committerChih-hung Hsieh <chh@google.com>2018-10-05 16:43:47 +0000
commit747eb149d06d9077e7b44aa1edd966e637386f33 (patch)
treef64bdec4eba3c79bcb6dd1da72e948da5e3a08f6 /logd
parent5f2a21d244be6cbbc64047474b0aca352f93b2d9 (diff)
downloadsystem_core-747eb149d06d9077e7b44aa1edd966e637386f33.tar.gz
system_core-747eb149d06d9077e7b44aa1edd966e637386f33.tar.bz2
system_core-747eb149d06d9077e7b44aa1edd966e637386f33.zip
Add noexcept to move constructors and assignment operators.
Bug: 116614593 Test: build with WITH_TIDY=1 Change-Id: I5a7461386946ca623ab509609092aa0ac8418b80
Diffstat (limited to 'logd')
-rw-r--r--logd/LogStatistics.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/logd/LogStatistics.h b/logd/LogStatistics.h
index d6b8ab385..469f6dcf4 100644
--- a/logd/LogStatistics.h
+++ b/logd/LogStatistics.h
@@ -531,7 +531,7 @@ struct TagNameKey {
name = std::string_view(alloc->c_str(), alloc->size());
}
- explicit TagNameKey(TagNameKey&& rval)
+ explicit TagNameKey(TagNameKey&& rval) noexcept
: alloc(rval.alloc), name(rval.name.data(), rval.name.length()) {
rval.alloc = nullptr;
}