summaryrefslogtreecommitdiff
path: root/queue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'queue.cpp')
-rw-r--r--queue.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/queue.cpp b/queue.cpp
index 3beb731c..4a319cb5 100644
--- a/queue.cpp
+++ b/queue.cpp
@@ -428,17 +428,17 @@ byte * ByteQueue::CreatePutSpace(size_t &size)
ByteQueue & ByteQueue::operator=(const ByteQueue &rhs)
{
- if (this == &rhs) return *this;
-
- Destroy();
- CopyFrom(rhs);
+ if (this != &rhs)
+ {
+ Destroy();
+ CopyFrom(rhs);
+ }
return *this;
}
bool ByteQueue::operator==(const ByteQueue &rhs) const
{
const lword currentSize = CurrentSize();
-
if (currentSize != rhs.CurrentSize())
return false;