diff options
author | David Robillard <d@drobilla.net> | 2009-05-13 16:04:14 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-05-13 16:04:14 +0000 |
commit | b84b50d2bbbfcd196d62344eaeef7fb08e3d686c (patch) | |
tree | 5b65cb8ec437087f1352ac23730355d6cc6369cb /src/PatchageEvent.cpp | |
parent | ddc09de45b45bdf2afdeff68eb8a17ad237ef6c3 (diff) | |
download | patchage-b84b50d2bbbfcd196d62344eaeef7fb08e3d686c.tar.gz patchage-b84b50d2bbbfcd196d62344eaeef7fb08e3d686c.tar.bz2 patchage-b84b50d2bbbfcd196d62344eaeef7fb08e3d686c.zip |
Strip trailing whitespace.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@1999 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/PatchageEvent.cpp')
-rw-r--r-- | src/PatchageEvent.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/PatchageEvent.cpp b/src/PatchageEvent.cpp index 4fbefdf..370143a 100644 --- a/src/PatchageEvent.cpp +++ b/src/PatchageEvent.cpp @@ -1,15 +1,15 @@ /* This file is part of Patchage. * Copyright (C) 2007 Dave Robillard <http://drobilla.net> - * + * * Patchage 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. - * + * * Patchage 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 @@ -56,7 +56,7 @@ PatchageEvent::execute(Patchage* patchage) _str = NULL; } else if (_type == PORT_CREATION) { - + Driver* driver = NULL; if (_port_1.type == PortID::JACK_ID) { #if defined(USE_LIBJACK) || defined(HAVE_JACK_DBUS) @@ -89,7 +89,7 @@ PatchageEvent::execute(Patchage* patchage) module->remove_port(port); patchage->enqueue_resize(module); port.reset(); - + // No empty modules (for now) if (module->num_ports() == 0) { patchage->canvas()->remove_item(module); @@ -103,17 +103,17 @@ PatchageEvent::execute(Patchage* patchage) } } else if (_type == CONNECTION) { - + SharedPtr<PatchagePort> port_1 = patchage->canvas()->find_port(_port_1); SharedPtr<PatchagePort> port_2 = patchage->canvas()->find_port(_port_2); - + if (port_1 && port_2) patchage->canvas()->add_connection(port_1, port_2, port_1->color() + 0x22222200); else cerr << "Unable to find port to connect" << endl; } else if (_type == DISCONNECTION) { - + SharedPtr<PatchagePort> port_1 = patchage->canvas()->find_port(_port_1); SharedPtr<PatchagePort> port_2 = patchage->canvas()->find_port(_port_2); |