Replace dpl asserts with libc ones
[platform/core/security/key-manager.git] / src / manager / dpl / core / src / binary_queue.cpp
index d30e18b..97f19e1 100644 (file)
@@ -21,7 +21,7 @@
  */
 #include <stddef.h>
 #include <dpl/binary_queue.h>
-#include <dpl/assert.h>
+#include <cassert>
 #include <algorithm>
 #include <functional>
 #include <malloc.h>
@@ -197,7 +197,7 @@ void BinaryQueue::Flatten(void *buffer, size_t bufferSize) const
        size_t bytesLeft = bufferSize;
        void *ptr = buffer;
        BucketList::const_iterator bucketIterator = m_buckets.begin();
-       Assert(m_buckets.end() != bucketIterator);
+       assert(m_buckets.end() != bucketIterator);
 
        // Flatten data
        while (bytesLeft > 0) {
@@ -250,8 +250,8 @@ BinaryQueue::Bucket::Bucket(const void *data,
        deleter(dataDeleter),
        param(userParam)
 {
-       Assert(data != NULL);
-       Assert(deleter != NULL);
+       assert(data != NULL);
+       assert(deleter != NULL);
 }
 
 BinaryQueue::Bucket::~Bucket()
@@ -280,7 +280,7 @@ void BinaryQueue::BucketVisitorCall::operator()(Bucket *bucket) const
 
 void BinaryQueue::VisitBuckets(BucketVisitor *visitor) const
 {
-       Assert(visitor != NULL);
+       assert(visitor != NULL);
 
        // Visit all buckets
        std::for_each(m_buckets.begin(), m_buckets.end(), BucketVisitorCall(visitor));