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/client/ObjectModel.cpp | 2 +- src/client/PluginModel.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client') diff --git a/src/client/ObjectModel.cpp b/src/client/ObjectModel.cpp index 2679186b..d6e8d115 100644 --- a/src/client/ObjectModel.cpp +++ b/src/client/ObjectModel.cpp @@ -91,7 +91,7 @@ void ObjectModel::set_path(const Raul::Path& p) { _path = p; - _symbol = p.symbol(); + _symbol = Raul::Symbol(p.is_root() ? "root" : p.symbol()); _signal_moved.emit(); } diff --git a/src/client/PluginModel.cpp b/src/client/PluginModel.cpp index ab1df485..460051a7 100644 --- a/src/client/PluginModel.cpp +++ b/src/client/PluginModel.cpp @@ -159,7 +159,7 @@ PluginModel::default_node_symbol() const if (name_atom.is_valid() && name_atom.type() == _uris.forge.String) return Raul::Symbol::symbolify(name_atom.get_string()); else - return "_"; + return Raul::Symbol("_"); } string -- cgit v1.2.1