mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 00:31:14 +00:00
Fix dereference before null check in example and formatting
This commit is contained in:
parent
a892a5a744
commit
151d3b5de8
|
@ -63,7 +63,7 @@ class FairMQParts
|
||||||
inline std::unique_ptr<FairMQMessage>& At(const int index) { return fParts.at(index); }
|
inline std::unique_ptr<FairMQMessage>& At(const int index) { return fParts.at(index); }
|
||||||
|
|
||||||
// ref version
|
// ref version
|
||||||
inline FairMQMessage& At_ref(const int index) { return *(fParts.at(index)); }
|
inline FairMQMessage& AtRef(const int index) { return *(fParts.at(index)); }
|
||||||
|
|
||||||
/// Get number of parts in the container
|
/// Get number of parts in the container
|
||||||
/// @return number of parts in the container
|
/// @return number of parts in the container
|
||||||
|
|
Loading…
Reference in New Issue
Block a user