From 7c19aa2a97c1e19b27b66c58a84c46489101950e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 4 Feb 2010 17:21:44 +0000 Subject: Use std::string::empty where possible (faster, and less prone to C string errors). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2420 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/events/CreateNode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/engine/events/CreateNode.cpp') diff --git a/src/engine/events/CreateNode.cpp b/src/engine/events/CreateNode.cpp index 426044ee..4f5b4877 100644 --- a/src/engine/events/CreateNode.cpp +++ b/src/engine/events/CreateNode.cpp @@ -83,7 +83,7 @@ CreateNode::pre_process() _patch = _engine.engine_store()->find_patch(_path.parent()); - _plugin = (_plugin_label == "") + _plugin = (_plugin_label.empty()) ? _engine.node_factory()->plugin(_plugin_uri.str()) : _engine.node_factory()->plugin(_plugin_type, _plugin_lib, _plugin_label); -- cgit v1.2.1