diff --git a/libs/ardour/ardour/export_handler.h b/libs/ardour/ardour/export_handler.h index 57243414fc..1178eb9e79 100644 --- a/libs/ardour/ardour/export_handler.h +++ b/libs/ardour/ardour/export_handler.h @@ -37,8 +37,6 @@ #include "ardour/types.h" #include "pbd/signals.h" -#include "pbd/i18n.h" - namespace AudioGrapher { class BroadcastInfo; } @@ -178,12 +176,7 @@ class LIBARDOUR_API ExportHandler : public ExportElementFactory, public sigc::tr , index_position (0) {} - ~CDMarkerStatus () { - if (!g_file_set_contents (path.c_str(), out.str().c_str(), -1, NULL)) { - PBD::error << string_compose(_("Editor: cannot open \"%1\" as export file for CD marker file"), path) << endmsg; - } - - } + ~CDMarkerStatus (); /* I/O */ std::string path; diff --git a/libs/ardour/export_handler.cc b/libs/ardour/export_handler.cc index a6cd5fc53b..4aed0ee97e 100644 --- a/libs/ardour/export_handler.cc +++ b/libs/ardour/export_handler.cc @@ -22,8 +22,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "ardour/export_handler.h" - #include "pbd/gstdio_compat.h" #include #include @@ -35,6 +33,7 @@ #include "ardour/audio_port.h" #include "ardour/debug.h" #include "ardour/export_graph_builder.h" +#include "ardour/export_handler.h" #include "ardour/export_timespan.h" #include "ardour/export_channel_configuration.h" #include "ardour/export_status.h" @@ -962,4 +961,10 @@ ExportHandler::cue_escape_cdtext (const std::string& txt) return out; } +ExportHandler::CDMarkerStatus::~CDMarkerStatus () { + if (!g_file_set_contents (path.c_str(), out.str().c_str(), -1, NULL)) { + PBD::error << string_compose(("Editor: cannot open \"%1\" as export file for CD marker file"), path) << endmsg; + } +} + } // namespace ARDOUR