aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2024-03-30 01:53:46 -0700
committerCopybara-Service <copybara-worker@google.com>2024-03-30 01:54:42 -0700
commit77afe8e0149c207edd9561c28de6d2226673b51f (patch)
tree9457aa714529cc55f24911d942da47ed75915122
parenteff443c6ef5eb6ab598bfaae27f9427fdb4f6af7 (diff)
downloadgoogletest-77afe8e0149c207edd9561c28de6d2226673b51f.tar.gz
Automated Code Change
PiperOrigin-RevId: 620448229 Change-Id: I487a0d8a8f89ebe82c9ec66fbb60cbe2203188c9
-rw-r--r--googletest/include/gtest/internal/gtest-filepath.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/googletest/include/gtest/internal/gtest-filepath.h b/googletest/include/gtest/internal/gtest-filepath.h
index 7ffb4923..6dc47be5 100644
--- a/googletest/include/gtest/internal/gtest-filepath.h
+++ b/googletest/include/gtest/internal/gtest-filepath.h
@@ -71,7 +71,7 @@ class GTEST_API_ FilePath {
public:
FilePath() : pathname_("") {}
FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) {}
- FilePath(FilePath&& rhs) : pathname_(std::move(rhs.pathname_)) {}
+ FilePath(FilePath&& rhs) noexcept : pathname_(std::move(rhs.pathname_)) {}
explicit FilePath(std::string pathname) : pathname_(std::move(pathname)) {
Normalize();
@@ -81,7 +81,7 @@ class GTEST_API_ FilePath {
Set(rhs);
return *this;
}
- FilePath& operator=(FilePath&& rhs) {
+ FilePath& operator=(FilePath&& rhs) noexcept {
pathname_ = std::move(rhs.pathname_);
return *this;
}