diff options
author | Abseil Team <absl-team@google.com> | 2024-03-30 08:53:46 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-03-30 08:54:42 (GMT) |
commit | 77afe8e0149c207edd9561c28de6d2226673b51f (patch) | |
tree | 9457aa714529cc55f24911d942da47ed75915122 | |
parent | eff443c6ef5eb6ab598bfaae27f9427fdb4f6af7 (diff) | |
download | googletest-77afe8e0149c207edd9561c28de6d2226673b51f.zip googletest-77afe8e0149c207edd9561c28de6d2226673b51f.tar.gz googletest-77afe8e0149c207edd9561c28de6d2226673b51f.tar.bz2 |
Automated Code Change
PiperOrigin-RevId: 620448229
Change-Id: I487a0d8a8f89ebe82c9ec66fbb60cbe2203188c9
-rw-r--r-- | googletest/include/gtest/internal/gtest-filepath.h | 4 |
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 7ffb492..6dc47be 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; } |