extern void set_language_preference (); // cocoacarbon.mm
void
-fixup_bundle_environment (int, char* [], const char** localedir)
+fixup_bundle_environment (int, char* [], string & localedir)
{
if (!g_getenv ("ARDOUR_BUNDLED")) {
return;
#ifdef ENABLE_NLS
if (!ARDOUR::translations_are_enabled ()) {
- (*localedir) = "/this/cannot/exist";
+ localedir = "/this/cannot/exist";
} else {
/* force localedir into the bundle */
lpath.push_back (bundle_dir);
lpath.push_back ("Resources");
lpath.push_back ("locale");
- (*localedir) = strdup (Glib::build_filename (lpath).c_str());
+ localedir = Glib::build_filename (lpath).c_str();
}
#endif