13
0

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 ()
This commit is contained in:
Robin Gareus 2016-06-01 12:01:06 +02:00
parent d60200c899
commit d9c98a51c2

View File

@ -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);
}