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) {
244
244
{" ToDoubleNanoseconds" , DurationScale::Nanoseconds},
245
245
{" ToInt64Nanoseconds" , DurationScale::Nanoseconds}});
246
246
247
- auto ScaleIter = ScaleMap.find (std::string ( Name) );
247
+ auto ScaleIter = ScaleMap.find (Name);
248
248
if (ScaleIter == ScaleMap.end ())
249
249
return std::nullopt;
250
250
@@ -260,7 +260,7 @@ std::optional<DurationScale> getScaleForTimeInverse(llvm::StringRef Name) {
260
260
{" ToUnixMicros" , DurationScale::Microseconds},
261
261
{" ToUnixNanos" , DurationScale::Nanoseconds}});
262
262
263
- auto ScaleIter = ScaleMap.find (std::string ( Name) );
263
+ auto ScaleIter = ScaleMap.find (Name);
264
264
if (ScaleIter == ScaleMap.end ())
265
265
return std::nullopt;
266
266
You can’t perform that action at this time.
0 commit comments