summaryrefslogtreecommitdiff
path: root/queue.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-07-30 13:07:33 -0400
committerJeffrey Walton <noloader@gmail.com>2015-07-30 13:07:33 -0400
commit77206baf56e6feb111f54678038307ac216128d5 (patch)
tree54f85d3fd471860a2d533a7acb30a1d9cb4d6897 /queue.cpp
parent7ad12ab5b05eb2ee595e8900a5d2d101740c7a94 (diff)
downloadcryptopp-git-77206baf56e6feb111f54678038307ac216128d5.tar.gz
Whitespace checkin
Diffstat (limited to 'queue.cpp')
-rw-r--r--queue.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/queue.cpp b/queue.cpp
index 19943215..3beb731c 100644
--- a/queue.cpp
+++ b/queue.cpp
@@ -42,7 +42,7 @@ public:
inline size_t Put(const byte *begin, size_t length)
{
- if(!begin || !length) return length;
+ if (!begin || !length) return length;
size_t l = STDMIN(length, MaxSize()-m_tail);
if (buf+m_tail != begin)
memcpy(buf+m_tail, begin, l);
@@ -61,7 +61,7 @@ public:
inline size_t Peek(byte *target, size_t copyMax) const
{
- if(!target || !copyMax) return 0;
+ if (!target || !copyMax) return 0;
size_t len = STDMIN(copyMax, m_tail-m_head);
memcpy(target, buf+m_head, len);
return len;
@@ -428,7 +428,7 @@ byte * ByteQueue::CreatePutSpace(size_t &size)
ByteQueue & ByteQueue::operator=(const ByteQueue &rhs)
{
- if(this == &rhs) return *this;
+ if (this == &rhs) return *this;
Destroy();
CopyFrom(rhs);