Fix dereference before null check in example and formatting

This commit is contained in:
Alexey Rybalchenko 2016-04-14 13:23:09 +02:00
parent a892a5a744
commit 151d3b5de8

View File

@ -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