From 151d3b5de85f05ecf289d31021f32587f05e6f3c Mon Sep 17 00:00:00 2001 From: Alexey Rybalchenko Date: Thu, 14 Apr 2016 13:23:09 +0200 Subject: [PATCH] Fix dereference before null check in example and formatting --- fairmq/FairMQParts.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fairmq/FairMQParts.h b/fairmq/FairMQParts.h index 2309d91b..e734e4a0 100644 --- a/fairmq/FairMQParts.h +++ b/fairmq/FairMQParts.h @@ -63,7 +63,7 @@ class FairMQParts inline std::unique_ptr& At(const int index) { return fParts.at(index); } // 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 /// @return number of parts in the container