13
0

Replace use of PBD::sys::path in PluginManager

git-svn-id: svn://localhost/ardour2/branches/3.0@12841 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Tim Mayberry 2012-06-23 05:07:22 +00:00
parent eb1c762985
commit 352e63de4c

View File

@ -46,7 +46,6 @@
#include "pbd/pathscanner.h"
#include "pbd/whitespace.h"
#include "pbd/filesystem.h"
#include "ardour/debug.h"
#include "ardour/filesystem_paths.h"
@ -768,10 +767,9 @@ void
PluginManager::save_statuses ()
{
ofstream ofs;
sys::path path = user_config_directory();
path /= "plugin_statuses";
std::string path = Glib::build_filename (user_config_directory(), "plugin_statuses");
ofs.open (path.to_string().c_str(), ios_base::openmode (ios::out|ios::trunc));
ofs.open (path.c_str(), ios_base::openmode (ios::out|ios::trunc));
if (!ofs) {
return;
@ -821,9 +819,8 @@ PluginManager::save_statuses ()
void
PluginManager::load_statuses ()
{
sys::path path = user_config_directory();
path /= "plugin_statuses";
ifstream ifs (path.to_string().c_str());
std::string path = Glib::build_filename (user_config_directory(), "plugin_statuses");
ifstream ifs (path.c_str());
if (!ifs) {
return;