Sergei G / LinkedList

Dependents:   JobScheduler

Fork of LinkedList by Sam Grove

Revision:
7:4ed66162aaa8
Parent:
6:e3ab7684c395
Child:
8:918b196b0ac4
diff -r e3ab7684c395 -r 4ed66162aaa8 LinkedList.cpp
--- a/LinkedList.cpp	Tue May 14 23:06:11 2013 +0000
+++ b/LinkedList.cpp	Sun Feb 23 14:09:48 2014 +0000
@@ -21,7 +21,6 @@
  */
 
 #include "LinkedList.h"    // api wrapper
-#include "LogUtil.h"
 
 template<class retT>
 LinkedList<retT>::LinkedList()
@@ -48,7 +47,7 @@
     // make sure the new object was allocated
     if (0 == new_node)
     {
-        ERROR("Memory allocation failed\n");
+        error("Memory allocation failed\n");
     }
     // update the next item in the list to the current head
     new_node->next = _head;
@@ -66,7 +65,7 @@
 //    // make sure the new object was allocated
 //    if (0 == new_node)
 //    {
-//        ERROR("Memory allocation failed\n");
+//        error("Memory allocation failed\n");
 //    }
 //    retT *current = _head->next;
 //    retT *prev = _head;
@@ -97,7 +96,7 @@
     // make sure the new object was allocated
     if (0 == new_node)
     {
-        ERROR("Memory allocation failed\n");
+        error("Memory allocation failed\n");
     }
     // store the address to the linked datatype
     new_node->data = data;