diff options
author | David Robillard <d@drobilla.net> | 2010-02-04 17:21:44 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-02-04 17:21:44 +0000 |
commit | 7c19aa2a97c1e19b27b66c58a84c46489101950e (patch) | |
tree | 72b2fac98b6f69bc16770194900c0e0bec86311b /src/gui/GladeFactory.cpp | |
parent | b8ef9bff8a46a682f68585aad7587bf081e8b7f8 (diff) | |
download | ingen-7c19aa2a97c1e19b27b66c58a84c46489101950e.tar.gz ingen-7c19aa2a97c1e19b27b66c58a84c46489101950e.tar.bz2 ingen-7c19aa2a97c1e19b27b66c58a84c46489101950e.zip |
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
Diffstat (limited to 'src/gui/GladeFactory.cpp')
-rw-r--r-- | src/gui/GladeFactory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/GladeFactory.cpp b/src/gui/GladeFactory.cpp index 41fcffc4..6a00a8b5 100644 --- a/src/gui/GladeFactory.cpp +++ b/src/gui/GladeFactory.cpp @@ -54,11 +54,11 @@ GladeFactory::find_glade_file() Glib::RefPtr<Gnome::Glade::Xml> GladeFactory::new_glade_reference(const string& toplevel_widget) { - if (glade_filename == "") + if (glade_filename.empty()) find_glade_file(); try { - if (toplevel_widget == "") + if (toplevel_widget.empty()) return Gnome::Glade::Xml::create(glade_filename); else return Gnome::Glade::Xml::create(glade_filename, toplevel_widget.c_str()); |