summaryrefslogtreecommitdiffstats
path: root/src/libs/gui/LoadRemotePatchWindow.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-08-17 06:38:33 +0000
committerDavid Robillard <d@drobilla.net>2008-08-17 06:38:33 +0000
commit03acefb8271d2abb5160b349d8e70687af6965fb (patch)
treee377017141707b2a97eeda4adffcfbb56eec88bc /src/libs/gui/LoadRemotePatchWindow.cpp
parent696535322342c56901d4d48641b6f9cf816ac1e1 (diff)
downloadingen-03acefb8271d2abb5160b349d8e70687af6965fb.tar.gz
ingen-03acefb8271d2abb5160b349d8e70687af6965fb.tar.bz2
ingen-03acefb8271d2abb5160b349d8e70687af6965fb.zip
Clean up parser into generic form that can parse anything (rather than just the root patch from a document).
Support for parsing from a string. Fix serialisation to a string. git-svn-id: http://svn.drobilla.net/lad/ingen@1414 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/gui/LoadRemotePatchWindow.cpp')
-rw-r--r--src/libs/gui/LoadRemotePatchWindow.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libs/gui/LoadRemotePatchWindow.cpp b/src/libs/gui/LoadRemotePatchWindow.cpp
index d4a9329f..5d4bcb5c 100644
--- a/src/libs/gui/LoadRemotePatchWindow.cpp
+++ b/src/libs/gui/LoadRemotePatchWindow.cpp
@@ -136,9 +136,8 @@ LoadRemotePatchWindow::open_clicked()
cerr << "OPEN URI: " << uri << endl;
// If unset load_patch will load values
- optional<const string&> name;
-
- optional<Path> parent;
+ optional<Path> parent;
+ optional<Symbol> symbol;
if (_replace)
App::instance().engine()->clear_patch(_patch->path());
@@ -147,7 +146,7 @@ LoadRemotePatchWindow::open_clicked()
parent = _patch->path().parent();
App::instance().loader()->load_patch(true, uri, "/",
- _initial_data, parent, name);
+ _initial_data, parent, symbol);
hide();
}