From d9c98a51c298e1a2650fedb2b4f284fab1a59a2a Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 1 Jun 2016 12:01:06 +0200 Subject: fix windows builds & remove cruft There's no mkstemp() for windows -> use Glib::file_open_tmp() also ofstream should not be used (on windows it does not support UTF8 fn) strstream + Glib::file_set_contents () --- gtk2_ardour/keyeditor.cc | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/gtk2_ardour/keyeditor.cc b/gtk2_ardour/keyeditor.cc index fc69d89e28..c93d78497a 100644 --- a/gtk2_ardour/keyeditor.cc +++ b/gtk2_ardour/keyeditor.cc @@ -520,16 +520,6 @@ KeyEditor::search_string_updated (const std::string& filter) void KeyEditor::print () const { - char templ[14]; - - snprintf (templ, sizeof (templ), "akprintXXXXXX"); - - int fd = mkstemp (templ); - ofstream f; - //f.open (fd); - + // use Glib::file_open_tmp() if needed Bindings::save_all_bindings_as_html (cerr); - - f.close (); - close (fd); } -- cgit v1.2.3