From: Maxim Mamontov Date: Sat, 13 Sep 2014 21:58:03 +0000 (+0300) Subject: Fixed bfstream test compilation. X-Git-Tag: 2.409~285 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/f55cdf088f15ad337edcc78989c60b717023fcf2?ds=inline;hp=9bcc50116ad21379a31ab8d65deb36688f2044b3 Fixed bfstream test compilation. --- diff --git a/tests/test_bfstream.cpp b/tests/test_bfstream.cpp index 595301b2..f80dc8d8 100644 --- a/tests/test_bfstream.cpp +++ b/tests/test_bfstream.cpp @@ -15,7 +15,7 @@ class TRACKER public: TRACKER() : m_lastSize(0), m_callCount(0), m_lastBlock(NULL) {} ~TRACKER() { delete[] m_lastBlock; } - void Call(const void * block, size_t size) + bool Call(const void * block, size_t size) { delete[] m_lastBlock; if (size > 0) @@ -27,6 +27,7 @@ class TRACKER m_lastBlock = NULL; m_lastSize = size; ++m_callCount; + return true; } size_t LastSize() const { return m_lastSize; } size_t CallCount() const { return m_callCount; } @@ -38,10 +39,10 @@ class TRACKER char * m_lastBlock; }; -void Callback(const void * block, size_t size, void * data) +bool Callback(const void * block, size_t size, void * data) { TRACKER & tracker = *static_cast(data); -tracker.Call(block, size); +return tracker.Call(block, size); } }