From 21b1e2e485d9fa954ca742965d000f3273fcb862 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 12 Aug 2012 15:56:21 +0000 Subject: Stricter symbol construction and conversion. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4670 a436a847-0d15-0410-975c-d299462d15a1 --- src/ClashAvoider.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ClashAvoider.cpp') diff --git a/src/ClashAvoider.cpp b/src/ClashAvoider.cpp index b389f358..2a00c33e 100644 --- a/src/ClashAvoider.cpp +++ b/src/ClashAvoider.cpp @@ -107,13 +107,14 @@ ClashAvoider::map_path(const Raul::Path& in) std::stringstream ss; ss << base_path << "_" << offset; if (!exists(ss.str())) { - string name = base_path.symbol(); + std::string name = base_path.symbol(); if (name == "") name = "_"; + Raul::Symbol sym(name); string str = ss.str(); InsertRecord i = _symbol_map.insert(make_pair(in, str)); Raul::debug << "HIT: offset = " << offset << ", str = " << str << endl; - offset = _store.child_name_offset(in.parent(), name, false); + offset = _store.child_name_offset(in.parent(), sym, false); _offsets.insert(make_pair(base_path, offset)); Raul::debug << " (4) " << i.first->second << endl; return i.first->second; -- cgit v1.2.1