diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-12-11 15:56:55 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-12-11 15:56:55 +0100 |
commit | fdbea05b16e3c716b5226a1f0d45cc98561500e4 (patch) | |
tree | d6f4046b7f10e9b68d279cd3e6f33665582b6177 /src/Buffer.h | |
parent | f0cd709e645a3d2210fce5daf80138696aac84e3 (diff) | |
download | dabmod-fdbea05b16e3c716b5226a1f0d45cc98561500e4.tar.gz dabmod-fdbea05b16e3c716b5226a1f0d45cc98561500e4.tar.bz2 dabmod-fdbea05b16e3c716b5226a1f0d45cc98561500e4.zip |
Fix all the warnings shown since previous commit
Diffstat (limited to 'src/Buffer.h')
-rw-r--r-- | src/Buffer.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Buffer.h b/src/Buffer.h index 8c5c768..60a7d50 100644 --- a/src/Buffer.h +++ b/src/Buffer.h @@ -43,15 +43,15 @@ class Buffer { protected: /* Current length of the data in the Buffer */ - size_t len; + size_t m_len; /* Allocated size of the Buffer */ - size_t size; + size_t m_size; /* Pointer to the data. Memory allocation is entirely * handled by setLength. */ - void *data; + void *m_data; public: using sptr = std::shared_ptr<Buffer>; @@ -77,7 +77,7 @@ class Buffer { void appendData(const void *data, size_t len); Buffer &operator+=(const Buffer ©); - size_t getLength() const { return len; } - void *getData() const { return data; } + size_t getLength() const { return m_len; } + void *getData() const { return m_data; } }; |