Fixed compile warnings.
[ardour.git] / libs / ardour / stateful.cc
index 7b63d01aad7e80a18dd112289df446f0de3f83cc..b8e301b2739f0501ce8a5f62fdc64fa4628d86ce 100644 (file)
@@ -27,6 +27,8 @@
 
 #include "i18n.h"
 
+using namespace PBD;
+
 Stateful::Stateful ()
 {
        _extra_xml = 0;
@@ -97,7 +99,7 @@ Stateful::add_instant_xml (XMLNode& node, const string& dir)
        tree.set_root (copy);
 
        if (!tree.write()) {
-               error << compose(_("Error: could not write %1"), dir+"/instant.xml") << endmsg;
+               error << string_compose(_("Error: could not write %1"), dir+"/instant.xml") << endmsg;
        }
 }
 
@@ -111,7 +113,7 @@ Stateful::instant_xml (const string& str, const string& dir)
                        if (tree.read(dir+"/instant.xml")) {
                                _instant_xml = new XMLNode(*(tree.root()));
                        } else {
-                               warning << compose(_("Could not understand XML file %1"), instant_file) << endmsg;
+                               warning << string_compose(_("Could not understand XML file %1"), instant_file) << endmsg;
                                return 0;
                        }
                } else {