summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk2_ardour/nag.cc8
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