summaryrefslogtreecommitdiff
path: root/absl/time/format.cc
diff options
context:
space:
mode:
Diffstat (limited to 'absl/time/format.cc')
-rw-r--r--absl/time/format.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/absl/time/format.cc b/absl/time/format.cc
index 15a26b14..bd06f8fb 100644
--- a/absl/time/format.cc
+++ b/absl/time/format.cc
@@ -16,6 +16,7 @@
#include <cctype>
#include <cstdint>
+#include <utility>
#include "absl/strings/match.h"
#include "absl/strings/string_view.h"
@@ -136,7 +137,7 @@ bool ParseTime(absl::string_view format, absl::string_view input,
if (b) {
*time = Join(parts);
} else if (err != nullptr) {
- *err = error;
+ *err = std::move(error);
}
return b;
}