From 7fb95e2c2b2f84ecf9b5d5d2f02b147d1ad7cb3d Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 20 Aug 2009 10:23:39 +0000 Subject: (svn r17228) -Codechange: some coding style fixes --- src/ai/api/ai_abstractlist.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/ai/api') diff --git a/src/ai/api/ai_abstractlist.cpp b/src/ai/api/ai_abstractlist.cpp index b1b9d098d..6cff54dc9 100644 --- a/src/ai/api/ai_abstractlist.cpp +++ b/src/ai/api/ai_abstractlist.cpp @@ -489,13 +489,19 @@ void AIAbstractList::Sort(SorterType sorter, bool ascending) delete this->sorter; switch (sorter) { case SORT_BY_ITEM: - if (ascending) this->sorter = new AIAbstractListSorterItemAscending(this); - else this->sorter = new AIAbstractListSorterItemDescending(this); + if (ascending) { + this->sorter = new AIAbstractListSorterItemAscending(this); + } else { + this->sorter = new AIAbstractListSorterItemDescending(this); + } break; case SORT_BY_VALUE: - if (ascending) this->sorter = new AIAbstractListSorterValueAscending(this); - else this->sorter = new AIAbstractListSorterValueDescending(this); + if (ascending) { + this->sorter = new AIAbstractListSorterValueAscending(this); + } else { + this->sorter = new AIAbstractListSorterValueDescending(this); + } break; default: -- cgit v1.2.3-70-g09d2