From 112eb3a668f65547b1757978b02cbafebf97b794 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 8 Mar 2019 08:21:27 +0100 Subject: Make parser take mandatory arguments by reference --- src/gui/GraphCanvas.cpp | 2 +- src/gui/ThreadedLoader.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui') diff --git a/src/gui/GraphCanvas.cpp b/src/gui/GraphCanvas.cpp index 931cc23f..6ff2abed 100644 --- a/src/gui/GraphCanvas.cpp +++ b/src/gui/GraphCanvas.cpp @@ -685,7 +685,7 @@ GraphCanvas::paste() // Parse clipboard text into clipboard store boost::optional base_uri = parser->parse_string( - _app.world(), &clipboard, str, main_uri()); + *_app.world(), clipboard, str, main_uri()); // Figure out the copy graph base path Raul::Path copy_root("/"); diff --git a/src/gui/ThreadedLoader.cpp b/src/gui/ThreadedLoader.cpp index cd7b1594..a7115de6 100644 --- a/src/gui/ThreadedLoader.cpp +++ b/src/gui/ThreadedLoader.cpp @@ -105,8 +105,8 @@ ThreadedLoader::load_graph_event(const FilePath& file_path, { std::lock_guard lock(_app.world()->rdf_mutex()); - _app.world()->parser()->parse_file(_app.world(), - _app.world()->interface().get(), + _app.world()->parser()->parse_file(*_app.world(), + *_app.world()->interface(), file_path, engine_parent, engine_symbol, -- cgit v1.2.1