File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ std::optional<DurationScale> getScaleForDurationInverse(llvm::StringRef Name) {
244244 {" ToDoubleNanoseconds" , DurationScale::Nanoseconds},
245245 {" ToInt64Nanoseconds" , DurationScale::Nanoseconds}});
246246
247- auto ScaleIter = ScaleMap.find (std::string ( Name) );
247+ auto ScaleIter = ScaleMap.find (Name);
248248 if (ScaleIter == ScaleMap.end ())
249249 return std::nullopt ;
250250
@@ -260,7 +260,7 @@ std::optional<DurationScale> getScaleForTimeInverse(llvm::StringRef Name) {
260260 {" ToUnixMicros" , DurationScale::Microseconds},
261261 {" ToUnixNanos" , DurationScale::Nanoseconds}});
262262
263- auto ScaleIter = ScaleMap.find (std::string ( Name) );
263+ auto ScaleIter = ScaleMap.find (Name);
264264 if (ScaleIter == ScaleMap.end ())
265265 return std::nullopt ;
266266
You can’t perform that action at this time.
0 commit comments