diff --git a/include/c/c_list.h b/include/c/c_list.h index 3f958bd2..d4287ade 100644 --- a/include/c/c_list.h +++ b/include/c/c_list.h @@ -31,7 +31,7 @@ public: /* 802e2be0 */ cListMg_c() : mpFirst(nullptr), mpLast(nullptr) {} // /* 802e2880 */ ~cListMg_c(); - bool insertAfter(cListNd_c *node, cListNd_c *prevNode); + void insertAfter(cListNd_c *node, cListNd_c *prevNode); /** * @brief Removes a node from the list. @@ -39,7 +39,7 @@ public: * @param node The node to remove. * @return If the operation was successful. */ - bool remove(cListNd_c *node); + void remove(cListNd_c *node); /** * @brief Adds a node to the end of the list. @@ -47,7 +47,7 @@ public: * @param node The node to append. * @return If the operation was successful. */ - bool append(cListNd_c *node); + void append(cListNd_c *node); /** * @brief Adds a node to the beginning of the list. @@ -55,7 +55,7 @@ public: * @param node The node to prepend. * @return If the operation was successful. */ - bool prepend(cListNd_c *node); + void prepend(cListNd_c *node); cListNd_c *getFirst() const { return mpFirst; diff --git a/src/c/c_list.cpp b/src/c/c_list.cpp index 37d1c624..5218c87d 100644 --- a/src/c/c_list.cpp +++ b/src/c/c_list.cpp @@ -1,7 +1,7 @@ #include -bool cListMg_c::insertAfter(cListNd_c *node, cListNd_c *prevNode) { +void cListMg_c::insertAfter(cListNd_c *node, cListNd_c *prevNode) { if (prevNode == nullptr) { return this->prepend(node); } @@ -18,7 +18,7 @@ bool cListMg_c::insertAfter(cListNd_c *node, cListNd_c *prevNode) { } } -bool cListMg_c::remove(cListNd_c *node) { +void cListMg_c::remove(cListNd_c *node) { if (node == nullptr) { return; } @@ -46,7 +46,7 @@ bool cListMg_c::remove(cListNd_c *node) { } } -bool cListMg_c::append(cListNd_c *node) { +void cListMg_c::append(cListNd_c *node) { if (node == nullptr) { return; } @@ -59,7 +59,7 @@ bool cListMg_c::append(cListNd_c *node) { this->mpLast = node; } -bool cListMg_c::prepend(cListNd_c *node) { +void cListMg_c::prepend(cListNd_c *node) { if (node == nullptr) { return; }