From d8fb4f4c38bd7c09ba7e26ff75f2111b6d4b7752 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sun, 8 Mar 2009 09:44:51 +0000 Subject: [PATCH] Detab. [SVN r51644] --- test/helpers/list.hpp | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/test/helpers/list.hpp b/test/helpers/list.hpp index 5197de68..1085279d 100644 --- a/test/helpers/list.hpp +++ b/test/helpers/list.hpp @@ -243,27 +243,27 @@ namespace test node** merge_adjacent_ranges(node** first, node** second, node** third, Less less) { - while(true) { - while(true) { - if(first == second) return third; - if(less((*second)->value_, (*first)->value_)) break; - first = &(*first)->next_; - } + while(true) { + while(true) { + if(first == second) return third; + if(less((*second)->value_, (*first)->value_)) break; + first = &(*first)->next_; + } - swap_adjacent_ranges(first, second, third); - first = &(*first)->next_; - - // Since the two ranges we just swapped, the order is now: - // first...third...second - - while(true) { - if(first == third) return second; - if(!less((*first)->value_, (*third)->value_)) break; - first = &(*first)->next_; - } + swap_adjacent_ranges(first, second, third); + first = &(*first)->next_; + + // Since the two ranges we just swapped, the order is now: + // first...third...second + + while(true) { + if(first == third) return second; + if(!less((*first)->value_, (*third)->value_)) break; + first = &(*first)->next_; + } - swap_adjacent_ranges(first, third, second); - first = &(*first)->next_; + swap_adjacent_ranges(first, third, second); + first = &(*first)->next_; } }