summaryrefslogtreecommitdiff
path: root/TAO/tao/Queued_Message.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Queued_Message.cpp')
-rw-r--r--TAO/tao/Queued_Message.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/TAO/tao/Queued_Message.cpp b/TAO/tao/Queued_Message.cpp
index f279c7b4b57..74e2dd273d0 100644
--- a/TAO/tao/Queued_Message.cpp
+++ b/TAO/tao/Queued_Message.cpp
@@ -12,12 +12,12 @@ TAO_Queued_Message::TAO_Queued_Message (TAO_ORB_Core *oc,
: allocator_ (alloc)
, is_heap_created_ (is_heap_allocated)
, orb_core_ (oc)
- , next_ (0)
- , prev_ (0)
+ , next_ (nullptr)
+ , prev_ (nullptr)
{
}
-TAO_Queued_Message::~TAO_Queued_Message (void)
+TAO_Queued_Message::~TAO_Queued_Message ()
{
}
@@ -25,7 +25,7 @@ void
TAO_Queued_Message::remove_from_list (TAO_Queued_Message *&head,
TAO_Queued_Message *&tail)
{
- if (this->prev_ != 0)
+ if (this->prev_ != nullptr)
{
this->prev_->next_ = this->next_;
}
@@ -34,7 +34,7 @@ TAO_Queued_Message::remove_from_list (TAO_Queued_Message *&head,
head = this->next_;
}
- if (this->next_ != 0)
+ if (this->next_ != nullptr)
{
this->next_->prev_ = this->prev_;
}
@@ -43,26 +43,26 @@ TAO_Queued_Message::remove_from_list (TAO_Queued_Message *&head,
tail = this->prev_;
}
- this->next_ = 0;
- this->prev_ = 0;
+ this->next_ = nullptr;
+ this->prev_ = nullptr;
}
void
TAO_Queued_Message::push_back (TAO_Queued_Message *&head,
TAO_Queued_Message *&tail)
{
- if (tail == 0)
+ if (tail == nullptr)
{
tail = this;
head = this;
- this->next_ = 0;
- this->prev_ = 0;
+ this->next_ = nullptr;
+ this->prev_ = nullptr;
}
else
{
tail->next_ = this;
this->prev_ = tail;
- this->next_ = 0;
+ this->next_ = nullptr;
tail = this;
}
}
@@ -71,18 +71,18 @@ void
TAO_Queued_Message::push_front (TAO_Queued_Message *&head,
TAO_Queued_Message *&tail)
{
- if (head == 0)
+ if (head == nullptr)
{
tail = this;
head = this;
- this->next_ = 0;
- this->prev_ = 0;
+ this->next_ = nullptr;
+ this->prev_ = nullptr;
}
else
{
head->prev_ = this;
this->next_ = head;
- this->prev_ = 0;
+ this->prev_ = nullptr;
head = this;
}
}