From a659a13c531e991851e013db3d4223bf16a343b8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 24 Jan 2014 17:28:43 +0000 Subject: Fix various whitespace and formatting issues. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5325 a436a847-0d15-0410-975c-d299462d15a1 --- src/ClashAvoider.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ClashAvoider.cpp') diff --git a/src/ClashAvoider.cpp b/src/ClashAvoider.cpp index 5ac7a773..734b7d04 100644 --- a/src/ClashAvoider.cpp +++ b/src/ClashAvoider.cpp @@ -74,14 +74,14 @@ ClashAvoider::map_path(const Raul::Path& in) parent = parent.parent(); } while (!parent.is_root()); - // No clash, use symbol unmodified if (!exists(in) && _symbol_map.find(in) == _symbol_map.end()) { + // No clash, use symbol unmodified InsertRecord i = _symbol_map.insert(make_pair(in, in)); assert(i.second); return i.first->second; - // Append _2 _3 etc until an unused symbol is found } else { + // Append _2 _3 etc until an unused symbol is found while (true) { Offsets::iterator o = _offsets.find(base_path); if (o != _offsets.end()) { -- cgit v1.2.1