diff options
author | Robin Gareus <robin@gareus.org> | 2015-10-05 21:51:52 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-10-05 22:15:17 +0200 |
commit | c898707bdfa9543e756bd4ba36d36d794bb5cfee (patch) | |
tree | 0dfd6560e2082ec053314852112bf6470ff4b729 /gtk2_ardour/nag.cc | |
parent | 97bd6db2b7c52d636fca9dc340aeb3f6cef7de4d (diff) |
remove ofstream from gtk2ardour
Diffstat (limited to 'gtk2_ardour/nag.cc')
-rw-r--r-- | gtk2_ardour/nag.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/nag.cc b/gtk2_ardour/nag.cc index 0dca9f84a1..61a8e1a9a4 100644 --- a/gtk2_ardour/nag.cc +++ b/gtk2_ardour/nag.cc @@ -21,7 +21,7 @@ #include "gtk2ardour-config.h" #endif -#include <fstream> +#include "pbd/gstdio_compat.h" #include <gtkmm/stock.h> #include "pbd/openuri.h" @@ -136,7 +136,7 @@ NagScreen::mark_never_again () path = Glib::build_filename (user_config_directory(), ".nevernag"); - ofstream nagfile (path.c_str()); + g_file_set_contents (path.c_str(), "", -1, NULL); } void @@ -146,7 +146,7 @@ NagScreen::mark_subscriber () path = Glib::build_filename (user_config_directory(), ".askedaboutsub"); - ofstream subsfile (path.c_str()); + g_file_set_contents (path.c_str(), "", -1, NULL); } void @@ -156,7 +156,7 @@ NagScreen::mark_affirmed_subscriber () path = Glib::build_filename (user_config_directory(), ".isubscribe"); - ofstream subsfile (path.c_str()); + g_file_set_contents (path.c_str(), "", -1, NULL); } bool |