NO-OP: whitespace

This fixes mostly <tab> after <space> and similar <tab> not used
for indenting as well as some related code alignment issues.
This commit is contained in:
Robin Gareus 2019-04-13 17:48:27 +02:00
parent 90a7bef656
commit 31815b5f26
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
33 changed files with 268 additions and 287 deletions

View file

@ -86,9 +86,6 @@ PortExportChannelSelector::PortExportChannelSelector (ARDOUR::Session * session,
PortExportChannelSelector::~PortExportChannelSelector ()
{
// if (session) {
// session->add_instant_xml (get_state(), false);
// }
}
void

View file

@ -246,17 +246,9 @@ ExportTimespanSelector::construct_label (ARDOUR::Location const * location) cons
break;
}
// label += _("from ");
// label += "<span color=\"#7fff7f\">";
label += start;
// label += "</span>";
label += _(" to ");
// label += "<span color=\"#7fff7f\">";
label += end;
// label += "</span>";
return label;
}

View file

@ -305,8 +305,9 @@ std::size_t s1pos, s2pos, n = 0;
s1pos = s1.length();
s2pos = s2.length();
while (s1pos-- > 0 && s2pos-- > 0) {
if (!match_or_digit(s1[s1pos], s2[s2pos]) )
if (!match_or_digit(s1[s1pos], s2[s2pos])) {
break;
}
n++;
}
return n;

View file

@ -465,7 +465,6 @@ MidiGhostRegion::redisplay_model ()
* representation of it.
* @return Our Event, or 0 if not found.
*/
MidiGhostRegion::GhostEvent *
MidiGhostRegion::find_event (boost::shared_ptr<NoteType> parent)
{

View file

@ -35,10 +35,10 @@ G_BEGIN_DECLS
typedef struct _PianoKeyboard PianoKeyboard;
typedef struct _PianoKeyboardClass PianoKeyboardClass;
#define NNOTES 127
#define NNOTES (127)
#define OCTAVE_MIN -1
#define OCTAVE_MAX 7
#define OCTAVE_MIN (-1)
#define OCTAVE_MAX (7)
struct PKNote {
int pressed; /* 1 if key is in pressed down state. */
@ -73,6 +73,7 @@ struct _PianoKeyboardClass
GType piano_keyboard_get_type (void) G_GNUC_CONST;
GtkWidget* piano_keyboard_new (void);
void piano_keyboard_sustain_press (PianoKeyboard *pk);
void piano_keyboard_sustain_release (PianoKeyboard *pk);
void piano_keyboard_set_note_on (PianoKeyboard *pk, int note);
@ -80,9 +81,9 @@ void piano_keyboard_set_note_off (PianoKeyboard *pk, int note);
void piano_keyboard_set_keyboard_cue (PianoKeyboard *pk, int enabled);
void piano_keyboard_set_monophonic (PianoKeyboard *pk, gboolean monophonic);
void piano_keyboard_set_octave (PianoKeyboard *pk, int octave);
gboolean piano_keyboard_set_keyboard_layout (PianoKeyboard *pk, const char *layout);
G_END_DECLS
#endif /* __PIANO_KEYBOARD_H__ */

View file

@ -110,8 +110,9 @@ int getXWindowProperty(Window window, Atom atom)
&bytes, // Number of bytes remaining if a partial read
&data); // The actual data read
if(LXVST_xerror == false && userCount == 1)
if (LXVST_xerror == false && userCount == 1) {
result = *(int*)data;
}
XSetErrorHandler (olderrorhandler);
@ -140,9 +141,10 @@ long getXWindowProperty(Window window, Atom atom)
LXVST_xerror = false;
/*Use our own Xerror handler while we're in here - in an
attempt to stop the brain dead default Xerror behaviour of
qutting the entire application because of e.g. an invalid
window ID*/
* attempt to stop the brain dead default Xerror behaviour of
* qutting the entire application because of e.g. an invalid
* window ID
*/
XErrorHandler olderrorhandler = XSetErrorHandler (TempErrorHandler);
@ -159,8 +161,9 @@ long getXWindowProperty(Window window, Atom atom)
&bytes,
&data);
if(LXVST_xerror == false && userCount == 1)
if (LXVST_xerror == false && userCount == 1) {
result = *(long*)data;
}
XSetErrorHandler (olderrorhandler);
@ -257,10 +260,11 @@ dispatch_x_events (XEvent* event, VSTState* vstfx)
#ifdef LXVST_64BIT
long result = getXWindowProperty (PluginUIWindowID, XInternAtom (LXVST_XDisplay, "_XEventProc", false));
if(result == 0)
if (result == 0) {
vstfx->eventProc = NULL;
else
} else {
vstfx->eventProc = (void (*) (void* event))result;
}
#endif
}
break;
@ -333,8 +337,7 @@ void* gui_event_loop (void* ptr)
bool may_sleep = true;
if(LXVST_XDisplay)
{
if (LXVST_XDisplay) {
/*See if there are any events in the queue*/
int num_events = XPending (LXVST_XDisplay);
@ -346,14 +349,12 @@ void* gui_event_loop (void* ptr)
/*process them if there are any*/
while(num_events)
{
while (num_events) {
XNextEvent (LXVST_XDisplay, &event);
/*Call dispatch events, with the event, for each plugin in the linked list*/
for (vstfx = vstfx_first; vstfx; vstfx = vstfx->next)
{
for (vstfx = vstfx_first; vstfx; vstfx = vstfx->next) {
pthread_mutex_lock (&vstfx->lock);
dispatch_x_events (&event, vstfx);
@ -374,8 +375,7 @@ void* gui_event_loop (void* ptr)
clock2 = g_get_monotonic_time();
const int64_t elapsed_time_ms = (clock2 - clock1) / 1000;
if((LXVST_sched_timer_interval != 0) && elapsed_time_ms >= LXVST_sched_timer_interval)
{
if ((LXVST_sched_timer_interval != 0) && elapsed_time_ms >= LXVST_sched_timer_interval) {
//printf ("elapsed %d ms ^= %.2f Hz\n", elapsed_time_ms, 1000.0/ (double)elapsed_time_ms); // DEBUG
pthread_mutex_lock (&plugin_mutex);
@ -445,8 +445,9 @@ again:
vstfx->plugin->dispatcher (vstfx->plugin, effEditIdle, 0, 0, NULL, 0);
if(vstfx->wantIdle)
if (vstfx->wantIdle) {
vstfx->plugin->dispatcher (vstfx->plugin, 53, 0, 0, NULL, 0);
}
pthread_mutex_unlock (&vstfx->lock);
}
@ -520,13 +521,13 @@ int vstfx_init (void* ptr)
will talk to X down this connection - X cannot handle multi-threaded access via
the same Display* */
if(LXVST_XDisplay==NULL)
if (LXVST_XDisplay == NULL) {
LXVST_XDisplay = XOpenDisplay (NULL); //We might be able to make this open a specific screen etc
}
/*Drop out and report the error if we fail to connect to X */
if(LXVST_XDisplay==NULL)
{
if (LXVST_XDisplay == NULL) {
vstfx_error ("** ERROR ** VSTFX: Failed opening connection to X");
return -1;

View file

@ -839,15 +839,15 @@ void
Panner2d::cart_to_gtk (CartesianVector& c) const
{
/* cartesian coordinate space:
center = 0.0
dimension = 2.0 * 2.0
increasing y moves up
so max values along each axis are -1..+1
GTK uses a coordinate space that is:
top left = 0.0
dimension = (radius*2.0) * (radius*2.0)
increasing y moves down
* center = 0.0
* dimension = 2.0 * 2.0
* increasing y moves up
* so max values along each axis are -1..+1
*
* GTK uses a coordinate space that is:
* top left = 0.0
* dimension = (radius*2.0) * (radius*2.0)
* increasing y moves down
*/
const double diameter = radius*2.0;

View file

@ -42,15 +42,6 @@ SendUI::SendUI (Gtk::Window* parent, boost::shared_ptr<Send> s, Session* session
{
assert (_send);
_panners.set_panner (s->panner_shell(), s->panner());
_gpm.set_controls (boost::shared_ptr<Route>(), s->meter(), s->amp(), s->gain_control());
_hbox.pack_start (_gpm, true, true);
set_name (X_("SendUIFrame"));
_vbox.set_spacing (5);
_vbox.set_border_width (5);
_vbox.pack_start (_hbox, false, false, false);
_vbox.pack_start (_panners, false, false);

View file

@ -90,7 +90,6 @@ public:
private:
void ensureWorkingDir ();
std::string doRequest (std::string uri, std::string params);

View file

@ -250,8 +250,8 @@ SpeakerDialog::darea_size_allocate (Gtk::Allocation& alloc)
height = alloc.get_height();
/* The allocation will (should) be rectangualar, but make the basic
drawing square; space to the right of the square is for over-hanging
text labels.
* drawing square; space to the right of the square is for over-hanging
* text labels.
*/
width = height;