diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/qpid/framing/FrameSet.cpp | 2 | ||||
-rw-r--r-- | cpp/src/qpid/framing/FrameSet.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/qpid/framing/FrameSet.cpp b/cpp/src/qpid/framing/FrameSet.cpp index f5fe02c5ba..5326ab7c14 100644 --- a/cpp/src/qpid/framing/FrameSet.cpp +++ b/cpp/src/qpid/framing/FrameSet.cpp @@ -28,7 +28,7 @@ using namespace qpid::framing; using namespace boost; -FrameSet::FrameSet(const SequenceNumber& _id) : id(_id),contentSize(0),recalculateSize(true) {parts.reserve(4);} +FrameSet::FrameSet(const SequenceNumber& _id) : id(_id),contentSize(0),recalculateSize(true) { } void FrameSet::append(const AMQFrame& part) { diff --git a/cpp/src/qpid/framing/FrameSet.h b/cpp/src/qpid/framing/FrameSet.h index d23cb717c9..ebefb09118 100644 --- a/cpp/src/qpid/framing/FrameSet.h +++ b/cpp/src/qpid/framing/FrameSet.h @@ -19,7 +19,7 @@ * */ #include <string> -#include <vector> +#include "qpid/InlineVector.h" #include "qpid/framing/amqp_framing.h" #include "qpid/framing/AMQFrame.h" #include "qpid/framing/SequenceNumber.h" @@ -35,7 +35,7 @@ namespace framing { */ class FrameSet { - typedef std::vector<AMQFrame> Frames; + typedef InlineVector<AMQFrame, 4> Frames; const SequenceNumber id; Frames parts; mutable uint64_t contentSize; |