diff options
author | Robin Gareus <robin@gareus.org> | 2016-06-01 12:01:06 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-06-01 12:01:25 +0200 |
commit | d9c98a51c298e1a2650fedb2b4f284fab1a59a2a (patch) | |
tree | 2501e4793a79c6922482661734f252a9441a5ca7 /gtk2_ardour/keyeditor.cc | |
parent | d60200c899e963d8077d9cb2a8e441b74971864a (diff) |
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 ()
Diffstat (limited to 'gtk2_ardour/keyeditor.cc')
-rw-r--r-- | gtk2_ardour/keyeditor.cc | 12 |
1 files changed, 1 insertions, 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); } |