Replaced broken code in recent_sessions.cc
authorGuy Sherman <guy@guysherman.com>
Tue, 8 Sep 2015 20:28:30 +0000 (22:28 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 8 Sep 2015 20:29:20 +0000 (22:29 +0200)
commit036ebab8a0452bd3cd20bae3d0281ff39b2b6a87
tree4208ef91673b69fedab6ce857b98c538042327b6
parent929db238c911f9c8d451e62c8e3834e3d39fc426
Replaced broken code in recent_sessions.cc

The original broken code was intended to stop using ifstream
and ofstream to open files, but it used a very old MSVCism to
open streams from FILE*.

In the case for reading, this patch replaces that code by using
standard c file manipulation to read the data into a stringstream,
and then it uses the existing stream-based code to read from there.

Similarly the ofstream in the code for writing the recent files list
is replaced by a stringstream, and then a c-string is extracted
from it and written using standard c file manipulation.

Also tweaked a couple of typos from rgareus :)
libs/ardour/recent_sessions.cc