mirror of
https://github.com/MariaDB/server.git
synced 2026-05-03 13:45:34 +02:00
replace assert() with DBUG_ASSERT()
This commit is contained in:
parent
01738d08f3
commit
5a4ae142f4
1 changed files with 5 additions and 3 deletions
|
|
@ -18,6 +18,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "my_dbug.h"
|
||||
|
||||
#include <cstddef>
|
||||
#include <iterator>
|
||||
|
||||
|
|
@ -69,12 +71,12 @@ public:
|
|||
typedef T *pointer;
|
||||
typedef T &reference;
|
||||
|
||||
Iterator(ListNode *node) : node_(node) { assert(node_); }
|
||||
Iterator(ListNode *node) : node_(node) { DBUG_ASSERT(node_); }
|
||||
|
||||
Iterator &operator++()
|
||||
{
|
||||
node_= node_->next;
|
||||
assert(node_);
|
||||
DBUG_ASSERT(node_);
|
||||
return *this;
|
||||
}
|
||||
Iterator operator++(int)
|
||||
|
|
@ -87,7 +89,7 @@ public:
|
|||
Iterator &operator--()
|
||||
{
|
||||
node_= node_->prev;
|
||||
assert(node_);
|
||||
DBUG_ASSERT(node_);
|
||||
return *this;
|
||||
}
|
||||
Iterator operator--(int)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue