diff options
author | David Robillard <d@drobilla.net> | 2014-01-24 17:28:43 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-01-24 17:28:43 +0000 |
commit | a659a13c531e991851e013db3d4223bf16a343b8 (patch) | |
tree | 583112a95bc6abeb39dd514c987ff1c82b3d2e9e /src/ingen | |
parent | 28ab52045a429eb190ea1a23cef92d81c36748f5 (diff) | |
download | ingen-a659a13c531e991851e013db3d4223bf16a343b8.tar.gz ingen-a659a13c531e991851e013db3d4223bf16a343b8.tar.bz2 ingen-a659a13c531e991851e013db3d4223bf16a343b8.zip |
Fix various whitespace and formatting issues.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5325 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/ingen')
-rw-r--r-- | src/ingen/main.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/ingen/main.cpp b/src/ingen/main.cpp index 3c3ebdcf..6e058414 100644 --- a/src/ingen/main.cpp +++ b/src/ingen/main.cpp @@ -106,20 +106,20 @@ main(int argc, char** argv) engine_interface = world->interface(); - #ifdef HAVE_SOCKET +#ifdef HAVE_SOCKET ingen_try(world->load_module("socket_server"), "Unable to load socket server module"); - #endif +#endif } // If we don't have a local engine interface (for GUI), use network if (!engine_interface) { ingen_try(world->load_module("client"), "Unable to load client module"); - #ifdef HAVE_SOCKET +#ifdef HAVE_SOCKET ingen_try(world->load_module("socket_client"), "Unable to load socket client module"); - #endif +#endif const char* const uri = conf.option("connect").ptr<char>(); ingen_try(Raul::URI::is_valid(uri), (fmt("Invalid URI <%1%>") % uri).str().c_str()); @@ -170,9 +170,9 @@ main(int argc, char** argv) ingen_try(bool(world->parser()), "Unable to create parser"); - const string path = conf.option("load").is_valid() ? - conf.option("load").ptr<char>() : - conf.files().front(); + const string path = (conf.option("load").is_valid() + ? conf.option("load").ptr<char>() + : conf.files().front()); engine_interface->get(Raul::URI("ingen:/plugins")); engine_interface->get(Node::root_uri()); @@ -216,4 +216,3 @@ main(int argc, char** argv) return 0; } - |