From 583c9c0dd688abc766df9af7b6c169206d0fe428 Mon Sep 17 00:00:00 2001 From: weidai Date: Tue, 14 Oct 2003 01:29:38 +0000 Subject: [PATCH] fix bug in swap --- trunk/c5/queue.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trunk/c5/queue.cpp b/trunk/c5/queue.cpp index aaffb1e4..6c5c5545 100644 --- a/trunk/c5/queue.cpp +++ b/trunk/c5/queue.cpp @@ -462,11 +462,13 @@ byte ByteQueue::operator[](unsigned long i) const void ByteQueue::swap(ByteQueue &rhs) { + std::swap(m_autoNodeSize, rhs.m_autoNodeSize); std::swap(m_nodeSize, rhs.m_nodeSize); std::swap(m_head, rhs.m_head); std::swap(m_tail, rhs.m_tail); std::swap(m_lazyString, rhs.m_lazyString); std::swap(m_lazyLength, rhs.m_lazyLength); + std::swap(m_lazyStringModifiable, rhs.m_lazyStringModifiable); } // ********************************************************