From 50b5df8e10ecb32b2691dd3871de92539766d451 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 8 Mar 2019 21:12:35 +0100 Subject: Make start_to_file() take a FilePath for type safety --- src/gui/ThreadedLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/ThreadedLoader.cpp b/src/gui/ThreadedLoader.cpp index 9d87fba5..45ac4f7f 100644 --- a/src/gui/ThreadedLoader.cpp +++ b/src/gui/ThreadedLoader.cpp @@ -138,7 +138,7 @@ ThreadedLoader::save_graph_event(SPtr model, if (uri.string().find(".ingen") != std::string::npos) { _app.serialiser()->write_bundle(model, uri); } else { - _app.serialiser()->start_to_file(model->path(), std::string(uri.path())); + _app.serialiser()->start_to_file(model->path(), uri.file_path()); _app.serialiser()->serialise(model); _app.serialiser()->finish(); } -- cgit v1.2.1