Skip to content

Commit bbe2b1d

Browse files
committed
Fix temporary lifetime issue
1 parent 9e189a8 commit bbe2b1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DataFormats/Provenance/src/ProductRegistry.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ namespace edm {
435435
throwMissingDictionariesException(missingDictionaries, context, producedTypes, branchNamesForMissing);
436436
}
437437

438-
std::string_view processNameSV(processName ? *processName : "");
438+
std::string_view processNameSV(processName ? std::string_view(*processName) : std::string_view());
439439
for (auto& iterProductLookup : new_productLookups) {
440440
iterProductLookup->setFrozen(processNameSV);
441441
}

0 commit comments

Comments
 (0)