diff options
author | David Robillard <d@drobilla.net> | 2011-04-16 19:02:36 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-04-16 19:02:36 +0000 |
commit | 1ac86ca2e5e32bd8bb34bba1589e2152004dc9a6 (patch) | |
tree | bbeed636819fc3e67e77e2645a699e01fd0d2e16 /src/main.cpp | |
parent | 7627989d3fbc7fd54013988d2ec7c29a5c517bbf (diff) | |
download | patchage-1ac86ca2e5e32bd8bb34bba1589e2152004dc9a6.tar.gz patchage-1ac86ca2e5e32bd8bb34bba1589e2152004dc9a6.tar.bz2 patchage-1ac86ca2e5e32bd8bb34bba1589e2152004dc9a6.zip |
Squeeze blank lines and delete trailing whitespace.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3152 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp index abf13c9..4be53a8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -15,7 +15,7 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#ifdef __APPLE__ +#ifdef __APPLE__ #include <stdlib.h> #include <unistd.h> #include <string> @@ -49,13 +49,13 @@ set_bundle_environment() chdir(bundle_path.c_str()); const std::string pangorc_path(bundle_path + "/Resources/pangorc"); setenv("PANGO_RC_FILE", pangorc_path.c_str(), 1); - + const char* path_c = getenv("PATH"); std::string path = "/opt/local/bin"; if (path_c) path += std::string(":") + path_c; setenv("PATH", path.c_str(), 1); - + gtk_rc_parse((bundle_path + "/Resources/gtkrc").c_str()); } #endif @@ -76,7 +76,7 @@ main(int argc, char** argv) Patchage patchage(argc, argv); app.run(*patchage.window()); - + } catch (std::exception& e) { Raul::error << "patchage: error: " << e.what() << std::endl; return 1; @@ -88,4 +88,3 @@ main(int argc, char** argv) return 0; } - |