@@ -59,7 +59,7 @@ private:
5959
6060public:
6161 RNTupleOpenSpec (std::string_view n, TDirectory *s) : fNTupleName (n), fStorage (s) {}
62- RNTupleOpenSpec (std::string_view n, const std::string & s) : fNTupleName (n), fStorage (s ) {}
62+ RNTupleOpenSpec (std::string_view n, std::string_view s) : fNTupleName (n), fStorage (std::string(s) ) {}
6363
6464 std::unique_ptr<ROOT ::Internal::RPageSource> CreatePageSource () const ;
6565};
@@ -314,7 +314,7 @@ protected:
314314 // /
315315 // / In case the field was already present in the entry, the index of the existing field is returned.
316316 virtual Internal::RNTupleProcessorEntry::FieldIndex_t
317- AddFieldToEntry (const std::string & fieldName, const std::string & typeName, void *valuePtr,
317+ AddFieldToEntry (std::string_view fieldName, std::string_view typeName, void *valuePtr,
318318 const Internal::RNTupleProcessorProvenance &provenance) = 0 ;
319319
320320 // ///////////////////////////////////////////////////////////////////////////
@@ -385,7 +385,7 @@ public:
385385 // / invalid data. After passing a pointer to `RequestField`, we *strongly* recommend only accessing its data through
386386 // / the interface of the returned `RNTupleProcessorOptionalPtr`, to ensure that only valid data can be read.
387387 template <typename T>
388- RNTupleProcessorOptionalPtr<T> RequestField (const std::string & fieldName, void *valuePtr = nullptr )
388+ RNTupleProcessorOptionalPtr<T> RequestField (std::string_view fieldName, void *valuePtr = nullptr )
389389 {
390390 Initialize (fEntry );
391391 std::string typeName{};
@@ -412,7 +412,7 @@ public:
412412 // / invalid data. After passing a pointer to `RequestField`, we *strongly* recommend only accessing its data through
413413 // / the interface of the returned `RNTupleProcessorOptionalPtr`, to ensure that only valid data can be read.
414414 RNTupleProcessorOptionalPtr<void >
415- RequestField (const std::string & fieldName, const std::string & typeName, void *valuePtr = nullptr )
415+ RequestField (std::string_view fieldName, std::string_view typeName, void *valuePtr = nullptr )
416416 {
417417 Initialize (fEntry );
418418 auto fieldIdx = AddFieldToEntry (fieldName, typeName, valuePtr, Internal::RNTupleProcessorProvenance ());
@@ -590,7 +590,7 @@ private:
590590 // / \return The newly created field.
591591 // / \throws ROOT::RException In case the requested field cannot be found on disk.
592592 std::unique_ptr<ROOT ::RFieldBase>
593- CreateAndConnectField (const std::string & qualifiedFieldName, const std::string & typeName);
593+ CreateAndConnectField (std::string_view qualifiedFieldName, std::string_view typeName);
594594
595595 // ///////////////////////////////////////////////////////////////////////////
596596 // / \brief Initialize the processor by creating an (initially empty) `fEntry`, or setting an existing one.
@@ -631,7 +631,7 @@ private:
631631 // /
632632 // / \sa RNTupleProcessor::AddFieldToEntry()
633633 Internal::RNTupleProcessorEntry::FieldIndex_t AddFieldToEntry (
634- const std::string & fieldName, const std::string & typeName, void *valuePtr = nullptr ,
634+ std::string_view fieldName, std::string_view typeName, void *valuePtr = nullptr ,
635635 const Internal::RNTupleProcessorProvenance &provenance = Internal::RNTupleProcessorProvenance()) final ;
636636
637637 // ///////////////////////////////////////////////////////////////////////////
@@ -726,7 +726,7 @@ private:
726726 // /
727727 // / \sa RNTupleProcessor::AddFieldToEntry()
728728 Internal::RNTupleProcessorEntry::FieldIndex_t AddFieldToEntry (
729- const std::string & fieldName, const std::string & typeName, void *valuePtr = nullptr ,
729+ std::string_view fieldName, std::string_view typeName, void *valuePtr = nullptr ,
730730 const Internal::RNTupleProcessorProvenance &provenance = Internal::RNTupleProcessorProvenance()) final ;
731731
732732 // ///////////////////////////////////////////////////////////////////////////
@@ -826,7 +826,7 @@ private:
826826 // /
827827 // / \sa RNTupleProcessor::AddFieldToEntry()
828828 Internal::RNTupleProcessorEntry::FieldIndex_t AddFieldToEntry (
829- const std::string & fieldName, const std::string & typeName, void *valuePtr = nullptr ,
829+ std::string_view fieldName, std::string_view typeName, void *valuePtr = nullptr ,
830830 const Internal::RNTupleProcessorProvenance &provenance = Internal::RNTupleProcessorProvenance()) final ;
831831
832832 // ///////////////////////////////////////////////////////////////////////////
0 commit comments