mirror of
https://github.com/zeldaret/ss
synced 2026-07-08 13:56:15 -04:00
Fix compiler warnings
This commit is contained in:
+4
-4
@@ -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;
|
||||
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
#include <c/c_list.h>
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user