diff options
author | Robin Gareus <robin@gareus.org> | 2015-10-05 21:43:44 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-10-05 22:15:17 +0200 |
commit | 97bd6db2b7c52d636fca9dc340aeb3f6cef7de4d (patch) | |
tree | aa1d81caf3c4bbb83c4c4f0d225f4c2a3db22433 /libs/gtkmm2ext/cursors.cc | |
parent | b9c8814959eb184fff3e5552e2928a156b62602d (diff) |
remove i/ofstream from libardour
except:
* audio-unit (ifstream is known to work on OSX)
* evoral curve algorithm debugger
* cycle-timer debug code
* export_handler's CDMarker -> TODO
Diffstat (limited to 'libs/gtkmm2ext/cursors.cc')
-rw-r--r-- | libs/gtkmm2ext/cursors.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libs/gtkmm2ext/cursors.cc b/libs/gtkmm2ext/cursors.cc index 9948fc667f..f8862835f6 100644 --- a/libs/gtkmm2ext/cursors.cc +++ b/libs/gtkmm2ext/cursors.cc @@ -18,8 +18,8 @@ */ #include <sstream> -#include <fstream> +#include "pbd/gstdio_compat.h" #include "pbd/error.h" #include "pbd/compose.h" @@ -41,13 +41,13 @@ CursorInfo::CursorInfo (const std::string& n, int hotspot_x, int hotspot_y) int CursorInfo::load_cursor_info (const std::string& path) { - std::ifstream infofile (path.c_str()); - - if (!infofile) { - return -1; - } + gchar *buf = NULL; + if (!g_file_get_contents (path.c_str(), &buf, NULL, NULL)) { + return -1; + } + std::stringstream infofile (buf); + g_free (buf); - std::stringstream s; std::string name; int x; int y; |