diff --git a/client/double_buffer.hpp b/client/double_buffer.hpp index 79fd9b8a..403b80b3 100644 --- a/client/double_buffer.hpp +++ b/client/double_buffer.hpp @@ -16,9 +16,10 @@ along with this program. If not, see . ***/ -#ifndef DOUBLE_BUFFER_H -#define DOUBLE_BUFFER_H +#pragma once + +// standard headers #include #include #include @@ -126,7 +127,7 @@ public: inline bool empty() const { - return (buffer.size() == 0); + return buffer.empty(); } void setSize(size_t size) @@ -136,7 +137,7 @@ public: const std::deque& getBuffer() const { - return &buffer; + return buffer; } private: @@ -144,6 +145,3 @@ private: std::deque buffer; }; - - -#endif