From 4dc3dc7cc05f44dd0821d067e4b3a26f72f7e327 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Fri, 17 Aug 2018 16:11:18 +1200 Subject: [PATCH] Fix code formatting issues with recent changes --- xapian-applications/omega/sort.cc | 3 ++- xapian-core/examples/xapian-pos.cc | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/xapian-applications/omega/sort.cc b/xapian-applications/omega/sort.cc index 19a91471d..c9dca6c0c 100644 --- a/xapian-applications/omega/sort.cc +++ b/xapian-applications/omega/sort.cc @@ -307,7 +307,8 @@ omegascript_sort(const vector& args, if (!uniq) { // Scan linearly through items, swapping to create the desired // partitioning. - for (size_t i = 0; i < part_f; ) { + size_t i = 0; + while (i < part_f) { int sign = string_sign(items[i], decimal); if (sign == first) { // Swap value to end of the first partition. diff --git a/xapian-core/examples/xapian-pos.cc b/xapian-core/examples/xapian-pos.cc index 15d4f16ae..9fa33dc92 100644 --- a/xapian-core/examples/xapian-pos.cc +++ b/xapian-core/examples/xapian-pos.cc @@ -204,7 +204,8 @@ try { cout << '\n' << pos << '\t'; break; default: - cout << "\nGap of " << (pos - old_pos - 1) << " unused positions\n" << pos << '\t'; + cout << "\nGap of " << (pos - old_pos - 1) + << " unused positions\n" << pos << '\t'; break; } cout << tip->get_term(); -- 2.11.4.GIT