aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/Loader.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-13 16:04:14 +0000
committerDavid Robillard <d@drobilla.net>2009-05-13 16:04:14 +0000
commit7834ed85fe96dc32d5d9f9ce8a2b5f3197bde600 (patch)
tree881bb99ba0c1842b834edceb82ec7aee6e87b9a6 /src/engine/Loader.cpp
parent47dffb2f2a20d8366ac708aaad88dd67c7ec7995 (diff)
downloadmachina-7834ed85fe96dc32d5d9f9ce8a2b5f3197bde600.tar.gz
machina-7834ed85fe96dc32d5d9f9ce8a2b5f3197bde600.tar.bz2
machina-7834ed85fe96dc32d5d9f9ce8a2b5f3197bde600.zip
Strip trailing whitespace.
git-svn-id: http://svn.drobilla.net/lad/trunk/machina@1999 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/Loader.cpp')
-rw-r--r--src/engine/Loader.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/engine/Loader.cpp b/src/engine/Loader.cpp
index 6d1409d..1f0140c 100644
--- a/src/engine/Loader.cpp
+++ b/src/engine/Loader.cpp
@@ -1,15 +1,15 @@
/* This file is part of Machina.
* Copyright (C) 2007 Dave Robillard <http://drobilla.net>
- *
+ *
* Machina is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option) any later
* version.
- *
+ *
* Machina is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
@@ -76,7 +76,7 @@ Loader::load(const Glib::ustring& uri)
cout << "[Loader] Loading " << machine_uri << " from " << document_uri << endl;
machine = SharedPtr<Machine>(new Machine(TimeUnit::beats(MACHINA_PPQN)));
-
+
typedef std::map<string, SharedPtr<Node> > Created;
Created created;
@@ -85,7 +85,7 @@ Loader::load(const Glib::ustring& uri)
/* Get initial nodes */
Query query = Query(_rdf_world, ustring(
- "SELECT DISTINCT ?node ?duration WHERE {\n") +
+ "SELECT DISTINCT ?node ?duration WHERE {\n") +
machine_uri + " :initialNode ?node .\n"
"?node :duration ?duration .\n"
"}\n");
@@ -118,14 +118,14 @@ Loader::load(const Glib::ustring& uri)
SharedPtr<Node> node(new Node(
TimeStamp(TimeUnit(TimeUnit::BEATS, MACHINA_PPQN), (double)(*i)["duration"]),
false));
- machine->add_node(node);
+ machine->add_node(node);
created[node_id] = node;
}
}
/* Find out which nodes are selectors */
-
+
query = Query(_rdf_world, ustring(
"SELECT DISTINCT ?node WHERE {\n") +
machine_uri + " :node ?node .\n"
@@ -184,7 +184,7 @@ Loader::load(const Glib::ustring& uri)
for (Query::Results::iterator i = results.begin(); i != results.end(); ++i) {
const char* src_uri = (*i)["src"];
- const char* dst_uri = (*i)["dst"];
+ const char* dst_uri = (*i)["dst"];
float prob = (*i)["prob"];
Created::iterator src_i = created.find(src_uri);