From c898707bdfa9543e756bd4ba36d36d794bb5cfee Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 5 Oct 2015 21:51:52 +0200 Subject: [PATCH] remove ofstream from gtk2ardour --- gtk2_ardour/nag.cc | 8 ++++---- 1 file 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 +#include "pbd/gstdio_compat.h" #include #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