fix crash when copy'ing latent plugins
[ardour.git] / libs / ardour / session_configuration.cc
index 2daeee334801aae2099895b8e91c001968816ea6..b8814711f376a856e6fea8df430cf9ceb8a89bbe 100644 (file)
@@ -18,7 +18,7 @@
 */
 
 #include <glib.h>
-#include <glib/gstdio.h> /* for g_stat() */
+#include "pbd/gstdio_compat.h"
 #include <glibmm/miscutils.h> /* for build_filename() */
 
 #include "pbd/error.h"
@@ -30,7 +30,7 @@
 #include "ardour/filesystem_paths.h"
 #include "ardour/session_configuration.h"
 #include "ardour/utils.h"
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace ARDOUR;
 using namespace PBD;
@@ -54,7 +54,7 @@ XMLNode&
 SessionConfiguration::get_state ()
 {
        XMLNode* root;
-       LocaleGuard lg (X_("C"));
+       LocaleGuard lg;
 
        root = new XMLNode ("Ardour");
        root->add_child_nocopy (get_variables ());
@@ -67,7 +67,7 @@ XMLNode&
 SessionConfiguration::get_variables ()
 {
        XMLNode* node;
-       LocaleGuard lg (X_("C"));
+       LocaleGuard lg;
 
        node = new XMLNode ("Config");
 
@@ -159,7 +159,7 @@ SessionConfiguration::load_state ()
 
                XMLNode* node;
                if (((node = find_named_node (root, X_("Config"))) != 0)) {
-                       LocaleGuard lg (X_("C"));
+                       LocaleGuard lg;
                        set_variables(*node);
                        info << _("Loaded custom session defaults.") << endmsg;
                } else {