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/shared/ClashAvoider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared') diff --git a/src/shared/ClashAvoider.cpp b/src/shared/ClashAvoider.cpp index a3e54957..c6aec06d 100644 --- a/src/shared/ClashAvoider.cpp +++ b/src/shared/ClashAvoider.cpp @@ -97,7 +97,7 @@ ClashAvoider::map_path(const Raul::Path& in) } else { string parent_str = in.parent().base(); parent_str = parent_str.substr(0, parent_str.find_last_of("/")); - if (parent_str == "") + if (parent_str.empty()) parent_str = "/"; debug << "PARENT: " << parent_str << endl; } -- cgit v1.2.1