Skip to content

Commit f1c32e3

Browse files
committed
Fix warnings
1 parent 56f43cc commit f1c32e3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Source/DS_LinkedList.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -960,6 +960,7 @@ namespace DataStructures
960960
if ( this->list_size == 0 )
961961
return ;
962962
else
963+
{
963964
if ( this->list_size == 1 ) // {RakNet::OP_DELETE(root->item); RakNet::OP_DELETE(root, _FILE_AND_LINE_);}
964965
{
965966
RakNet::OP_DELETE(this->root, _FILE_AND_LINE_);
@@ -986,6 +987,7 @@ namespace DataStructures
986987
this->list_size = 0;
987988
this->root = 0;
988989
this->position = 0;
990+
}
989991
}
990992

991993
template <class CircularLinkedListType>

Source/DS_OrderedList.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace DataStructures
2727
template <class key_type, class data_type>
2828
int defaultOrderedListComparison(const key_type &a, const data_type &b)
2929
{
30-
if (a<b) return -1; if (a==b) return 0; return 1;
30+
if (a<b) return -1; else if (a==b) return 0; else return 1;
3131
}
3232

3333
/// \note IMPORTANT! If you use defaultOrderedListComparison then call IMPLEMENT_DEFAULT_COMPARISON or you will get an unresolved external linker error.

0 commit comments

Comments
 (0)