diff options
author | David Robillard <d@drobilla.net> | 2019-03-08 08:21:27 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-03-08 08:21:27 +0100 |
commit | 112eb3a668f65547b1757978b02cbafebf97b794 (patch) | |
tree | e40e3e7b145d8bca8496d42165ae2dce2bb627ea /src/gui | |
parent | a758bd3a5ea0d1155b661db6c2d35466dff73fb0 (diff) | |
download | ingen-112eb3a668f65547b1757978b02cbafebf97b794.tar.gz ingen-112eb3a668f65547b1757978b02cbafebf97b794.tar.bz2 ingen-112eb3a668f65547b1757978b02cbafebf97b794.zip |
Make parser take mandatory arguments by reference
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/GraphCanvas.cpp | 2 | ||||
-rw-r--r-- | src/gui/ThreadedLoader.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
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<URI> 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<std::mutex> 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, |